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

Function WriteUint8ToByte

util/convert.go:205–214  ·  view source on GitHub ↗
(w io.Writer, data uint8)

Source from the content-addressed store, hash-verified

203}
204
205func WriteUint8ToByte(w io.Writer, data uint8) error {
206 bb := make([]byte, 8)
207 bb[0] = byte(data)
208 _, err := w.Write(bb[:1])
209 if err != nil {
210 return err
211 }
212
213 return nil
214}
215
216func WriteUint16ToByte(w io.Writer, data uint16, bigEndian bool) error {
217 var bb []byte

Callers 5

WritePMTDescriptorFunction · 0.92
WritePMTBodyFunction · 0.92
WritePSIFunction · 0.92
WritePESHeaderFunction · 0.92
WriteTsHeaderFunction · 0.92

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected