//go:build (amd64 || arm64) && gc && !noasm && !nounsafe && !purego

package lz4block

import 

// srcReader loads little endian words from a byte slice without bounds
// checks, on little endian platforms with fast unaligned loads. The noasm,
// nounsafe and purego tags select the portable version instead. Callers must
// only load within the slice, and say why their positions are in bounds.
type srcReader struct{ p unsafe.Pointer }

// newSrcReader returns a reader for b, which must not be empty.
func newSrcReader( []byte) srcReader { return srcReader{unsafe.Pointer(&[0])} }

func ( srcReader) ( []byte,  int) uint16 { return *(*uint16)(unsafe.Add(.p, )) }
func ( srcReader) ( []byte,  int) uint32 { return *(*uint32)(unsafe.Add(.p, )) }
func ( srcReader) ( []byte,  int) uint64 { return *(*uint64)(unsafe.Add(.p, )) }