datautil

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

想给你写封信,却不知从何说起

Index

Constants

View Source
const (
	Board1 // 是近在咫尺
	Board2 // 还是远在天边
	Board3
)

你现在在哪里呢

View Source
const NumMaxPacket = 5

篇幅有限,也挡不住我的思念

Variables

This section is empty.

Functions

func FindValidPart

func FindValidPart(data []byte) (int, int)

从破碎的碎片中,渴望拼凑出你的痕迹

func MakeCmd

func MakeCmd(act ActMode, v variable.CmdT) []byte

把我的思念,化作一串珍珠送给你

func MakeWriteCmd

func MakeWriteCmd(v variable.T) []byte

把我的思念,化作一串珍珠送给你

Types

type ActMode

type ActMode uint8
const (
	Subscribe         ActMode // 想让你一直联系
	SubscribeReturn           // 期待你认真回应
	Unsubscribe               // 却担心打扰到你
	UnsubscribeReturn         // 有回复就够了呢
	Read                      // 你在想什么
	ReadReturn                // 能告诉我吗
	Write                     // 希望改变你的心意
	WriteReturn               // 传达到了吗
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL