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

Method WriteUint16

tars/protocol/codec/codec.go:244–246  ·  view source on GitHub ↗

WriteUint16 write uint16 with the tag.

(data uint16, tag byte)

Source from the content-addressed store, hash-verified

242
243// WriteUint16 write uint16 with the tag.
244func (b *Buffer) WriteUint16(data uint16, tag byte) error {
245 return b.WriteInt32(int32(data), tag)
246}
247
248// WriteInt32 write int32 with the tag.
249func (b *Buffer) WriteInt32(data int32, tag byte) error {

Callers 2

TestUint16Function · 0.95
putBaseMethod · 0.80

Calls 1

WriteInt32Method · 0.95

Tested by 1

TestUint16Function · 0.76