MCPcopy
hub / github.com/TarsCloud/TarsGo / WriteUint8

Method WriteUint8

tars/protocol/codec/codec.go:211–213  ·  view source on GitHub ↗

WriteUint8 write uint8 with the tag

(data uint8, tag byte)

Source from the content-addressed store, hash-verified

209
210// WriteUint8 write uint8 with the tag
211func (b *Buffer) WriteUint8(data uint8, tag byte) error {
212 return b.WriteInt16(int16(data), tag)
213}
214
215// WriteBool write bool with the tag.
216func (b *Buffer) WriteBool(data bool, tag byte) error {

Callers 4

TestUint8Function · 0.95
TestReader_unreadHeadFunction · 0.95
TestReader_SkipToNoCheckFunction · 0.95
putBaseMethod · 0.80

Calls 1

WriteInt16Method · 0.95

Tested by 3

TestUint8Function · 0.76
TestReader_unreadHeadFunction · 0.76
TestReader_SkipToNoCheckFunction · 0.76