Lines Matching defs:byte
37 p []byte
41 func (d *dataIO) read(n int) []byte {
61 func (d *dataIO) byte() (n byte, ok bool) {
71 func byteString(p []byte) string {
86 func LoadLocationFromTZData(name string, data []byte) (*Location, error) {
89 // 4-byte magic "TZif"
94 // 1-byte version, then 15 bytes of padding
95 var p []byte
152 // 8-byte ints for txtimes and leap seconds.
166 var b byte
167 if b, ok = zonedata.byte(); !ok {
171 if b, ok = zonedata.byte(); !ok || int(b) >= len(abbrev) {
226 func loadTzinfoFromDirOrZip(dir, name string) ([]byte, error) {
245 func get4(b []byte) int {
253 func get2(b []byte) int {
262 func loadTzinfoFromZip(zipfile, name string) ([]byte, error) {
278 buf := make([]byte, ztailsize)
286 buf = make([]byte, size)
349 buf = make([]byte, zheadersize+namelen)
359 buf = make([]byte, size)
373 var loadTzinfoFromTzdata func(file, name string) ([]byte, error)
379 func loadTzinfo(name string, source string) ([]byte, error) {
412 func readFile(name string) ([]byte, error) {
419 buf [4096]byte
420 ret []byte