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

Method WriteUint32

tars/protocol/codec/codec.go:268–270  ·  view source on GitHub ↗

WriteUint32 write uint32 data with the tag.

(data uint32, tag byte)

Source from the content-addressed store, hash-verified

266
267// WriteUint32 write uint32 data with the tag.
268func (b *Buffer) WriteUint32(data uint32, tag byte) error {
269 return b.WriteInt64(int64(data), tag)
270}
271
272// WriteInt64 write int64 with the tag.
273func (b *Buffer) WriteInt64(data int64, tag byte) error {

Callers 4

TestUint32Function · 0.95
BenchmarkUint32Function · 0.95
DispatchMethod · 0.95
putBaseMethod · 0.80

Calls 1

WriteInt64Method · 0.95

Tested by 2

TestUint32Function · 0.76
BenchmarkUint32Function · 0.76