MCPcopy Index your code
hub / github.com/microsoft/typescript-go / readLE32

Function readLE32

internal/api/encoder/decoder.go:331–336  ·  view source on GitHub ↗
(data []byte, offset int)

Source from the content-addressed store, hash-verified

329}
330
331func readLE32(data []byte, offset int) uint32 {
332 if offset < 0 || offset+4 > len(data) {
333 return 0
334 }
335 return binary.LittleEndian.Uint32(data[offset : offset+4])
336}
337
338// Hand-written commonData decoding functions. Each extracts the original values
339// from the 6-bit commonData that were packed by the corresponding

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected