MCPcopy Create free account
hub / github.com/Shopify/go-lua / endianness

Function endianness

undump.go:283–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281}
282
283func endianness() binary.ByteOrder {
284 if x := 1; *(*byte)(unsafe.Pointer(&x)) == 1 {
285 return binary.LittleEndian
286 }
287 return binary.BigEndian
288}
289
290func (state *loadState) checkHeader() error {
291 h := header

Callers 4

initFunction · 0.85
undumpMethod · 0.85
readerOnFunction · 0.85
dumpMethod · 0.85

Calls

no outgoing calls

Tested by 1

readerOnFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…