Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for sizeOf (0.2 sec)

  1. src/archive/tar/strconv.go

    	}
    
    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    	// Final adjustment if adding size field increased the record size.
    	if len(record) != size {
    		size = len(record)
    		record = strconv.Itoa(size) + " " + k + "=" + v + "\n"
    	}
    	return record, nil
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. src/bytes/boundary_test.go

    		for i := range b {
    			idx := Index(b[i:], q[:j])
    			if idx != -1 {
    				t.Fatalf("Index(b[%d:], q[:%d])=%d, want -1\n", i, j, idx)
    			}
    		}
    		q[j-1] = 0
    	}
    
    	// Test differing alignments and sizes of q which always end on a page boundary.
    	q[len(q)-1] = 1 // difference is only found on the last byte
    	for j := 0; j < len(q); j++ {
    		for i := range b {
    			idx := Index(b[i:], q[j:])
    			if idx != -1 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/callback_c_gccgo.c

    #include "_cgo_export.h"
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    /* Test calling panic from C.  This is what SWIG does.  */
    
    extern void _cgo_panic(const char *);
    extern void *_cgo_allocate(size_t);
    
    void
    callPanic(void)
    {
    	_cgo_panic("panic from C");
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 452 bytes
    - Viewed (0)
  4. src/archive/zip/writer_test.go

    	// write a zip file
    	archive := new(bytes.Buffer)
    	w := NewWriter(archive)
    
    	for i := range files {
    		f := &files[i]
    		f.crc32 = crc32.ChecksumIEEE(f.content)
    		size := uint64(len(f.content))
    		f.uncompressedSize = size
    		f.compressedSize = size
    
    		var compressedContent []byte
    		if f.method == Deflate {
    			var buf bytes.Buffer
    			w, err := flate.NewWriter(&buf, flate.BestSpeed)
    			if err != nil {
    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)
  5. src/archive/tar/fuzz_test.go

    	err := w.WriteHeader(&Header{
    		Name: "lorem.txt",
    		Mode: 0600,
    		Size: int64(len(inp)),
    	})
    	if err != nil {
    		f.Fatalf("failed to create writer: %s", err)
    	}
    	_, err = w.Write(inp)
    	if err != nil {
    		f.Fatalf("failed to write file to archive: %s", err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  6. api/go1.6.txt

    pkg debug/elf, type Chdr32 struct
    pkg debug/elf, type Chdr32 struct, Addralign uint32
    pkg debug/elf, type Chdr32 struct, Size uint32
    pkg debug/elf, type Chdr32 struct, Type uint32
    pkg debug/elf, type Chdr64 struct
    pkg debug/elf, type Chdr64 struct, Addralign uint64
    pkg debug/elf, type Chdr64 struct, Size uint64
    pkg debug/elf, type Chdr64 struct, Type uint32
    pkg debug/elf, type CompressionType int
    pkg debug/elf, type R_MIPS int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 13 23:40:13 GMT 2016
    - 12.9K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg crypto/sha1, const Size ideal-int
    pkg crypto/sha1, func New() hash.Hash
    pkg crypto/sha256, const BlockSize ideal-int
    pkg crypto/sha256, const Size ideal-int
    pkg crypto/sha256, const Size224 ideal-int
    pkg crypto/sha256, func New() hash.Hash
    pkg crypto/sha256, func New224() hash.Hash
    pkg crypto/sha512, const BlockSize ideal-int
    pkg crypto/sha512, const Size ideal-int
    pkg crypto/sha512, const Size384 ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  8. src/archive/zip/reader.go

    func NewReader(r io.ReaderAt, size int64) (*Reader, error) {
    	if size < 0 {
    		return nil, errors.New("zip: size cannot be negative")
    	}
    	zr := new(Reader)
    	var err error
    	if err = zr.init(r, size); err != nil && err != ErrInsecurePath {
    		return nil, err
    	}
    	return zr, err
    }
    
    func (r *Reader) init(rdr io.ReaderAt, size int64) error {
    	end, baseOffset, err := readDirectoryEnd(rdr, size)
    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)
  9. api/go1.16.txt

    pkg debug/elf, const DT_MIPS_AUX_DYNAMIC DynTag
    pkg debug/elf, const DT_MIPS_BASE_ADDRESS = 1879048198
    pkg debug/elf, const DT_MIPS_BASE_ADDRESS DynTag
    pkg debug/elf, const DT_MIPS_COMPACT_SIZE = 1879048239
    pkg debug/elf, const DT_MIPS_COMPACT_SIZE DynTag
    pkg debug/elf, const DT_MIPS_CONFLICT = 1879048200
    pkg debug/elf, const DT_MIPS_CONFLICT DynTag
    pkg debug/elf, const DT_MIPS_CONFLICTNO = 1879048203
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    }
    
    func TestEqualExhaustive(t *testing.T) {
    	var size = 128
    	if testing.Short() {
    		size = 32
    	}
    	a := make([]byte, size)
    	b := make([]byte, size)
    	b_init := make([]byte, size)
    	// randomish but deterministic data
    	for i := 0; i < size; i++ {
    		a[i] = byte(17 * i)
    		b_init[i] = byte(23*i + 100)
    	}
    
    	for len := 0; len <= size; len++ {
    		for x := 0; x <= size-len; x++ {
    			for y := 0; y <= size-len; y++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top