type dirInfo … const blockSize … var dirBufPool … func (d *dirInfo) close() { … } func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEntry, infos []FileInfo, err error) { … } // readInt returns the size-bytes unsigned integer in native byte order at offset off. func readInt(b []byte, off, size uintptr) (u uint64, ok bool) { … } func readIntBE(b []byte, size uintptr) uint64 { … } func readIntLE(b []byte, size uintptr) uint64 { … }