MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / WriteUint32

Function WriteUint32

pkg/util/bytes/bytes.go:80–84  ·  view source on GitHub ↗

WriteUint32 writes the provided uint32 value to byte slice.

(v uint32)

Source from the content-addressed store, hash-verified

78
79// WriteUint32 writes the provided uint32 value to byte slice.
80func WriteUint32(v uint32) (b []byte) {
81 b = make([]byte, 4)
82 NativeEndian.PutUint32(b, v)
83 return
84}
85
86// WriteUint64 writes the provided uint64 value to byte slice.
87func WriteUint64(v uint64) (b []byte) {

Callers 6

MarshalMethod · 0.92
MarshalMethod · 0.92
NewFunction · 0.92
hashFieldsFunction · 0.92
MarshalMethod · 0.92
MarshalRawMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected