MCPcopy Create free account
hub / github.com/Monibuca/engine / WriteUint16

Method WriteUint16

util/buffer.go:147–149  ·  view source on GitHub ↗
(v uint16)

Source from the content-addressed store, hash-verified

145 PutBE(b.Malloc(3), v)
146}
147func (b *Buffer) WriteUint16(v uint16) {
148 binary.BigEndian.PutUint16(b.Malloc(2), v)
149}
150func (b *Buffer) WriteByte(v byte) {
151 b.Malloc(1)[0] = v
152}

Callers 1

WriteSliceBytesMethod · 0.95

Calls 2

MallocMethod · 0.95
PutUint16Method · 0.45

Tested by

no test coverage detected