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

Function WriteUint16

pkg/util/bytes/bytes.go:68–72  ·  view source on GitHub ↗

WriteUint16 writes the provided uint16 value to byte slice.

(v uint16)

Source from the content-addressed store, hash-verified

66
67// WriteUint16 writes the provided uint16 value to byte slice.
68func WriteUint16(v uint16) (b []byte) {
69 b = make([]byte, 2)
70 NativeEndian.PutUint16(b, v)
71 return
72}
73
74// WriteUint16Buffer writes the provided uint16 value to the byte slice.
75func WriteUint16Buffer(v uint16, b []byte) {

Callers 7

MarshalMethod · 0.92
MarshalMethod · 0.92
MarshalMethod · 0.92
writeSnapshotsMethod · 0.92
hashFieldsFunction · 0.92
MarshalMethod · 0.92
MarshalRawMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected