Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
147
func
(b *Buffer) WriteUint16(v uint16) {
148
binary.BigEndian.PutUint16(b.Malloc(2), v)
149
}
150
func
(b *Buffer) WriteByte(v byte) {
151
b.Malloc(1)[0] = v
152
}
Callers
1
WriteSliceBytes
Method · 0.95
Calls
2
Malloc
Method · 0.95
PutUint16
Method · 0.45
Tested by
no test coverage detected