Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 203 for gbyte (0.11 sec)

  1. src/encoding/xml/marshal_test.go

    	// Check that []byte works, including named []byte types.
    	{
    		Value:     &Data{Bytes: []byte("ab"), Custom: MyBytes("cd"), Attr: []byte{'v'}},
    		ExpectXML: `<Data Attr="v"><Bytes>ab</Bytes><Custom>cd</Custom></Data>`,
    	},
    
    	// Test innerxml
    	{
    		Value: &SecretAgent{
    			Handle:    "007",
    			Identity:  "James Bond",
    			Obfuscate: "<redacted/>",
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. src/net/netip/netip_test.go

    // interface for IPv6 or IPv6 + zone. This is here for benchmarking.
    type ip4i struct {
    	ip4    [4]byte
    	flags1 byte
    	flags2 byte
    	flags3 byte
    	flags4 byte
    	ipv6   any
    }
    
    func newip4i_v4(a, b, c, d byte) ip4i {
    	return ip4i{ip4: [4]byte{a, b, c, d}}
    }
    
    // BenchmarkIPv4_inline benchmarks the candidate representation, ip4i.
    func BenchmarkIPv4_inline(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  3. src/time/time.go

    	sec := t.sec()
    	nsec := t.nsec()
    	enc := []byte{
    		version,         // byte 0 : version
    		byte(sec >> 56), // bytes 1-8: seconds
    		byte(sec >> 48),
    		byte(sec >> 40),
    		byte(sec >> 32),
    		byte(sec >> 24),
    		byte(sec >> 16),
    		byte(sec >> 8),
    		byte(sec),
    		byte(nsec >> 24), // bytes 9-12: nanoseconds
    		byte(nsec >> 16),
    		byte(nsec >> 8),
    		byte(nsec),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  4. src/index/suffixarray/sais2.go

    	cx := uint64(0) // byte-only
    
    	// This stanza (until the blank line) is the "LMS-substring iterator",
    	// described in placeLMS_8_64 above, with one line added to maintain cx.
    	c0, c1, isTypeS := byte(0), byte(0), false
    	for i := len(text) - 1; i >= 0; i-- {
    		c0, c1 = text[i], c0
    		cx = cx<<8 | uint64(c1+1) // byte-only
    		if c0 < c1 {
    			isTypeS = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  5. src/crypto/tls/common.go

    	TLSUnique []byte
    
    	// ECHAccepted indicates if Encrypted Client Hello was offered by the client
    	// and accepted by the server. Currently, ECH is supported only on the
    	// client side.
    	ECHAccepted bool
    
    	// ekm is a closure exposed via ExportKeyingMaterial.
    	ekm func(label string, context []byte, length int) ([]byte, error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  6. src/debug/elf/file_test.go

    		buf.Write([]byte{0})
    		buf.Write([]byte(".symtab\x00"))
    		buf.Write([]byte(".strtab\x00"))
    		buf.Write([]byte(".shstrtab\x00"))
    		buf.Write([]byte(".text\x00"))
    		buf.Write([]byte(".data\x00"))
    		buf.Write([]byte(".bss\x00"))
    		for i := 1; i <= 65288; i++ {
    			// s_0001 ~ s_ff08
    			name := fmt.Sprintf("section_%04x", i)
    			buf.Write([]byte(name))
    			buf.Write([]byte{0})
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 60.1K bytes
    - Viewed (0)
  7. src/reflect/type.go

    		args = append(args, t)
    		hash = fnv1(hash, byte(t.t.Hash>>24), byte(t.t.Hash>>16), byte(t.t.Hash>>8), byte(t.t.Hash))
    	}
    	if variadic {
    		hash = fnv1(hash, 'v')
    	}
    	hash = fnv1(hash, '.')
    	for _, out := range out {
    		t := out.(*rtype)
    		args = append(args, t)
    		hash = fnv1(hash, byte(t.t.Hash>>24), byte(t.t.Hash>>16), byte(t.t.Hash>>8), byte(t.t.Hash))
    	}
    
    	ft.TFlag = 0
    	ft.Hash = hash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  8. src/strings/strings_test.go

    	testCases := []IndexTest{
    		{"", "q", -1},
    		{"abcdef", "q", -1},
    		{"abcdefabcdef", "a", len("abcdef")},      // something in the middle
    		{"abcdefabcdef", "f", len("abcdefabcde")}, // last byte
    		{"zabcdefabcdef", "z", 0},                 // first byte
    		{"a☺b☻c☹d", "b", len("a☺")},               // non-ascii
    	}
    	for _, test := range testCases {
    		actual := LastIndexByte(test.s, test.sep[0])
    		if actual != test.out {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  9. src/net/http/httputil/reverseproxy_test.go

    			t.Errorf("got forwarded User-Agent %q, want %q", got, want)
    		}
    	}
    }
    
    type bufferPool struct {
    	get func() []byte
    	put func([]byte)
    }
    
    func (bp bufferPool) Get() []byte  { return bp.get() }
    func (bp bufferPool) Put(v []byte) { bp.put(v) }
    
    func TestReverseProxyGetPutBuffer(t *testing.T) {
    	const msg = "hi"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  10. src/time/format.go

    // Duplicates functionality in strconv, but avoids dependency.
    func appendInt(b []byte, x int, width int) []byte {
    	u := uint(x)
    	if x < 0 {
    		b = append(b, '-')
    		u = uint(-x)
    	}
    
    	// 2-digit and 4-digit fields are the most common in time formats.
    	utod := func(u uint) byte { return '0' + byte(u) }
    	switch {
    	case width == 2 && u < 1e2:
    		return append(b, utod(u/1e1), utod(u%1e1))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
Back to top