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

Method GetByte

util/pool.go:273–284  ·  view source on GitHub ↗
(index int)

Source from the content-addressed store, hash-verified

271}
272
273func (list *BLL) GetByte(index int) (b byte) {
274 list.Range(func(item Buffer) bool {
275 l := item.Len()
276 if index < l {
277 b = item[index]
278 return false
279 }
280 index -= l
281 return true
282 })
283 return
284}
285
286func (list *BLL) GetUint24(index int) uint32 {
287 return list.GetUintN(index, 3)

Callers 4

GetUintNMethod · 0.95
WriteAVCCVideoMethod · 0.80
WriteAVCCAudioMethod · 0.80
WriteAVCCMethod · 0.80

Calls 2

LenMethod · 0.65
RangeMethod · 0.45

Tested by

no test coverage detected