Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for uint64 (0.2 sec)

  1. src/archive/zip/reader.go

    type readBuf []byte
    
    func (b *readBuf) uint8() uint8 {
    	v := (*b)[0]
    	*b = (*b)[1:]
    	return v
    }
    
    func (b *readBuf) uint16() uint16 {
    	v := binary.LittleEndian.Uint16(*b)
    	*b = (*b)[2:]
    	return v
    }
    
    func (b *readBuf) uint32() uint32 {
    	v := binary.LittleEndian.Uint32(*b)
    	*b = (*b)[4:]
    	return v
    }
    
    func (b *readBuf) uint64() uint64 {
    	v := binary.LittleEndian.Uint64(*b)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  2. src/archive/zip/struct.go

    	directoryRecords   uint64
    	directorySize      uint64
    	directoryOffset    uint64 // relative to file
    	commentLen         uint16
    	comment            string
    }
    
    // timeZone returns a *time.Location based on the provided offset.
    // If the offset is non-sensible, then this uses an offset of zero.
    func timeZone(offset time.Duration) *time.Location {
    	const (
    		minOffset   = -12 * time.Hour  // E.g., Baker island at -12:00
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  3. api/go1.22.txt

    pkg math/rand/v2, method (*Rand) Uint64() uint64 #61716
    pkg math/rand/v2, method (*Rand) Uint64N(uint64) uint64 #61716
    pkg math/rand/v2, method (*Rand) UintN(uint) uint #61716
    pkg math/rand/v2, method (*Zipf) Uint64() uint64 #61716
    pkg math/rand/v2, type ChaCha8 struct #61716
    pkg math/rand/v2, type PCG struct #61716
    pkg math/rand/v2, type Rand struct #61716
    pkg math/rand/v2, type Source interface { Uint64 } #61716
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 24 20:54:27 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    	}
    	err = rc.Close()
    	if err != nil {
    		t.Fatal("closing:", err)
    	}
    	if size+int64(len("END\n")) >= 1<<32-1 {
    		if got, want := f0.UncompressedSize, uint32(uint32max); got != want {
    			t.Errorf("UncompressedSize %#x, want %#x", got, want)
    		}
    	}
    
    	if got, want := f0.UncompressedSize64, uint64(size)+uint64(len(end)); got != want {
    		t.Errorf("UncompressedSize64 %#x, want %#x", got, want)
    	}
    
    	return buf
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    	c.byte = c.Ident("byte")
    	c.int8 = c.Ident("int8")
    	c.int16 = c.Ident("int16")
    	c.int32 = c.Ident("int32")
    	c.int64 = c.Ident("int64")
    	c.uint8 = c.Ident("uint8")
    	c.uint16 = c.Ident("uint16")
    	c.uint32 = c.Ident("uint32")
    	c.uint64 = c.Ident("uint64")
    	c.uintptr = c.Ident("uintptr")
    	c.float32 = c.Ident("float32")
    	c.float64 = c.Ident("float64")
    	c.complex64 = c.Ident("complex64")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  6. src/archive/zip/writer_test.go

    	r, err := NewReader(bytes.NewReader(buf2.Bytes()), int64(buf2.Len()))
    	if err != nil {
    		t.Fatal(err)
    	}
    	for i, wt := range writeTests {
    		testReadFile(t, r.File[i], &wt)
    	}
    }
    
    func TestWriterCreateRaw(t *testing.T) {
    	files := []struct {
    		name             string
    		content          []byte
    		method           uint16
    		flags            uint16
    		crc32            uint32
    		uncompressedSize uint64
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    		} else {
    			b.uint32(h.CompressedSize)
    			b.uint32(h.UncompressedSize)
    		}
    
    		b.uint16(uint16(len(h.Name)))
    		b.uint16(uint16(len(h.Extra)))
    		b.uint16(uint16(len(h.Comment)))
    		b = b[4:] // skip disk number start and internal file attr (2x uint16)
    		b.uint32(h.ExternalAttrs)
    		if h.offset > uint32max {
    			b.uint32(uint32max)
    		} else {
    			b.uint32(uint32(h.offset))
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. lib/time/mkzip.go

    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    		if err != nil {
    			log.Fatal(err)
    		}
    		if _, err := w.Write(data); err != nil {
    			log.Fatal(err)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/builtin/builtin.go

    	false = 0 != 0 // Untyped bool.
    )
    
    // uint8 is the set of all unsigned 8-bit integers.
    // Range: 0 through 255.
    type uint8 uint8
    
    // uint16 is the set of all unsigned 16-bit integers.
    // Range: 0 through 65535.
    type uint16 uint16
    
    // uint32 is the set of all unsigned 32-bit integers.
    // Range: 0 through 4294967295.
    type uint32 uint32
    
    // uint64 is the set of all unsigned 64-bit integers.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/archive/zip/reader_test.go

    }
    
    func messWith(fileName string, corrupter func(b []byte)) (r io.ReaderAt, size int64) {
    	data, err := os.ReadFile(filepath.Join("testdata", fileName))
    	if err != nil {
    		panic("Error reading " + fileName + ": " + err.Error())
    	}
    	corrupter(data)
    	return bytes.NewReader(data), int64(len(data))
    }
    
    func returnCorruptCRC32Zip() (r io.ReaderAt, size int64) {
    	return messWith("go-with-datadesc-sig.zip", func(b []byte) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top