MCPcopy Create free account
hub / github.com/DNAProject/DNA / WriteUint16

Function WriteUint16

common/serialization/serialize.go:234–239  ·  view source on GitHub ↗
(writer io.Writer, val uint16)

Source from the content-addressed store, hash-verified

232}
233
234func WriteUint16(writer io.Writer, val uint16) error {
235 var p [2]byte
236 binary.LittleEndian.PutUint16(p[:], val)
237 _, err := writer.Write(p[:])
238 return err
239}
240
241func WriteUint32(writer io.Writer, val uint32) error {
242 var p [4]byte

Callers 1

TestReadWriteIntFunction · 0.85

Calls 1

WriteMethod · 0.80

Tested by 1

TestReadWriteIntFunction · 0.68