MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / WriteUInt32

Function WriteUInt32

projects/Go/proto/fbe/Buffer.go:365–370  ·  view source on GitHub ↗

Write unsigned 32-bits integer into the buffer

(buffer []byte, offset int, value uint32)

Source from the content-addressed store, hash-verified

363
364// Write unsigned 32-bits integer into the buffer
365func WriteUInt32(buffer []byte, offset int, value uint32) {
366 buffer[offset + 0] = byte(value >> 0)
367 buffer[offset + 1] = byte(value >> 8)
368 buffer[offset + 2] = byte(value >> 16)
369 buffer[offset + 3] = byte(value >> 24)
370}
371
372// Write signed 64-bits integer into the buffer
373func WriteInt64(buffer []byte, offset int, value int64) {

Callers 9

SetMethod · 0.85
SetMethod · 0.85
ReceiveMethod · 0.85
SetMethod · 0.85
WriteWCharFunction · 0.85
WriteFloatFunction · 0.85
SetMethod · 0.85
SetMethod · 0.85
SetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected