Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for tozero (0.18 sec)

  1. src/bytes/buffer.go

    	"unicode/utf8"
    )
    
    // smallBufferSize is an initial allocation minimal capacity.
    const smallBufferSize = 64
    
    // A Buffer is a variable-sized buffer of bytes with [Buffer.Read] and [Buffer.Write] methods.
    // The zero value for Buffer is an empty buffer ready to use.
    type Buffer struct {
    	buf      []byte // contents are the bytes buf[off : len(buf)]
    	off      int    // read at &buf[off], write at &buf[len(buf)]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    		//	-a-1 == ^a
    		//
    		// If the number is negative, we use an inversion mask to invert the
    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    		if b[0]&0x40 != 0 {
    			inv = 0xff
    		}
    
    		var x uint64
    		for i, c := range b {
    			c ^= inv // Inverts c only if inv is 0xff, otherwise does nothing
    			if i == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  3. src/archive/tar/fuzz_test.go

    		}
    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    
    		// TODO: We may want to check if the archive roundtrips. This would require
    		// taking into account addition of the two zero trailer blocks that Writer.Close
    		// appends.
    	})
    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)
  4. src/archive/zip/struct.go

    		return int64(fi.fh.UncompressedSize64)
    	}
    	return int64(fi.fh.UncompressedSize)
    }
    func (fi headerFileInfo) IsDir() bool { return fi.Mode().IsDir() }
    func (fi headerFileInfo) ModTime() time.Time {
    	if fi.fh.Modified.IsZero() {
    		return fi.fh.ModTime()
    	}
    	return fi.fh.Modified.UTC()
    }
    func (fi headerFileInfo) Mode() fs.FileMode { return fi.fh.Mode() }
    func (fi headerFileInfo) Type() fs.FileMode { return fi.fh.Mode().Type() }
    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)
  5. src/cmd/cgo/gcc.go

    			fmt.Fprintf(&b, "\t%s,\n", n.C)
    		} else {
    			fmt.Fprintf(&b, "\t0,\n")
    		}
    	}
    	// for the last entry, we cannot use 0, otherwise
    	// in case all __cgodebug_data is zero initialized,
    	// LLVM-based gcc will place the it in the __DATA.__common
    	// zero-filled section (our debug/macho doesn't support
    	// this)
    	fmt.Fprintf(&b, "\t1\n")
    	fmt.Fprintf(&b, "};\n")
    
    	// do the same work for floats.
    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

    		t.Errorf("unexpected method and flags: %v", b[6:10])
    	}
    
    	if !bytes.Equal(b[14:26], make([]byte, 12)) { // FileHeader.{CRC32,CompressSize,UncompressedSize} all zero.
    		t.Errorf("unexpected crc, compress and uncompressed size to be 0 was: %v", b[14:26])
    	}
    
    	binary.LittleEndian.PutUint32(sig[:], uint32(dataDescriptorSignature))
    	if bytes.Contains(b, sig[:]) {
    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. api/go1.16.txt

    pkg syscall (darwin-arm64), const IPV6_FW_GET = 34
    pkg syscall (darwin-arm64), const IPV6_FW_GET ideal-int
    pkg syscall (darwin-arm64), const IPV6_FW_ZERO = 33
    pkg syscall (darwin-arm64), const IPV6_FW_ZERO ideal-int
    pkg syscall (darwin-arm64), const IPV6_HLIMDEC = 1
    pkg syscall (darwin-arm64), const IPV6_HLIMDEC ideal-int
    pkg syscall (darwin-arm64), const IPV6_IPSEC_POLICY = 28
    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)
  8. src/archive/zip/reader.go

    	f.Modified = msdosModified
    	if !modified.IsZero() {
    		f.Modified = modified.UTC()
    
    		// If legacy MS-DOS timestamps are set, we can use the delta between
    		// the legacy and extended versions to estimate timezone offset.
    		//
    		// A non-UTC timezone is always used (even if offset is zero).
    		// Thus, FileHeader.Modified.Location() == time.UTC is useful for
    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. src/archive/tar/reader_test.go

    			Uid:      010000000,
    			ModTime:  time.Unix(0, 0),
    			Typeflag: '0',
    		}},
    	}, {
    		// USTAR archive with a regular entry with non-zero device numbers.
    		file: "testdata/ustar-file-devs.tar",
    		headers: []*Header{{
    			Name:     "file",
    			Mode:     0644,
    			Typeflag: '0',
    			ModTime:  time.Unix(0, 0),
    			Devmajor: 1,
    			Devminor: 1,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg time, method (Time) GobEncode() ([]uint8, error)
    pkg time, method (Time) Hour() int
    pkg time, method (Time) ISOWeek() (int, int)
    pkg time, method (Time) In(*Location) Time
    pkg time, method (Time) IsZero() bool
    pkg time, method (Time) Local() Time
    pkg time, method (Time) Location() *Location
    pkg time, method (Time) MarshalJSON() ([]uint8, error)
    pkg time, method (Time) Minute() 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)
Back to top