Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for gbyte (0.48 sec)

  1. src/cmd/internal/obj/x86/asm6.go

    	ab.buf[ab.off+1] = byte(v >> 8)
    	ab.buf[ab.off+2] = byte(v >> 16)
    	ab.buf[ab.off+3] = byte(v >> 24)
    	ab.off += 4
    }
    
    // PutInt64 writes v into the buffer using little-endian encoding.
    func (ab *AsmBuf) PutInt64(v int64) {
    	ab.buf[ab.off+0] = byte(v)
    	ab.buf[ab.off+1] = byte(v >> 8)
    	ab.buf[ab.off+2] = byte(v >> 16)
    	ab.buf[ab.off+3] = byte(v >> 24)
    	ab.buf[ab.off+4] = byte(v >> 32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  2. cmd/storage-datatypes_gen.go

    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z BaseOptions) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 0
    	_ = z
    	o = append(o, 0x80)
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BaseOptions) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 130.6K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	{V(MyBytes([]byte(nil))), V((*[0]byte)(nil))},
    	{V(MyBytes([]byte{})), V(new([0]byte))},
    	{V(MyBytes([]byte{9})), V(&[1]byte{9})},
    	{V([]byte(nil)), V(MyBytesArrayPtr0(nil))},
    	{V([]byte{}), V(MyBytesArrayPtr0(new([0]byte)))},
    	{V([]byte{1, 2, 3, 4}), V(MyBytesArrayPtr(&[4]byte{1, 2, 3, 4}))},
    	{V(MyBytes([]byte{})), V(MyBytesArrayPtr0(new([0]byte)))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    	}
    
    	publicKeys := []struct {
    		derBytes          []byte
    		expectedErrSubstr string
    	}{
    		{
    			derBytes: []byte{
    				0x30, 6, // SEQUENCE, 6 bytes
    				0x02, 1, // INTEGER, 1 byte
    				17,
    				0x02, 1, // INTEGER, 1 byte
    				3, // 3
    			},
    		}, {
    			derBytes: []byte{
    				0x30, 6, // SEQUENCE
    				0x02, 1, // INTEGER, 1 byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. cmd/object-handlers_test.go

    			}
    
    			// Various ranges to query - all are valid!
    			rangeHdrs := []string{
    				// Read first byte of object
    				fmt.Sprintf("bytes=%d-%d", 0, 0),
    				// Read second byte of object
    				fmt.Sprintf("bytes=%d-%d", 1, 1),
    				// Read last byte of object
    				fmt.Sprintf("bytes=-%d", 1),
    				// Read all but first byte of object
    				"bytes=1-",
    				// Read first half of object
    				fmt.Sprintf("bytes=%d-%d", 0, objLen/2),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    		rw.(Flusher).Flush() // force the Header to be sent, in chunking mode, not counting the length
    		rw.Write([]byte{'x'})
    		rw.Write([]byte{'y'})
    		rw.Write([]byte{'z'})
    	}))
    	<-conn.closec
    	if !bytes.HasSuffix(conn.writeBuf.Bytes(), []byte("\r\n\r\n3\r\nxyz\r\n0\r\n\r\n")) {
    		t.Errorf("response didn't end with a single 3 byte 'xyz' chunk; got:\n%q",
    			conn.writeBuf.Bytes())
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. cmd/server_test.go

    	c.Assert(response.ContentLength, int64(len([]byte("hello world"))))
    	var buffer2 bytes.Buffer
    	// retrieve the contents of response body.
    	n, err := io.Copy(&buffer2, response.Body)
    	c.Assert(err, nil)
    	c.Assert(n, int64(len([]byte("hello world"))))
    	// asserted the contents of the fetched object with the expected result.
    	c.Assert(true, bytes.Equal(buffer2.Bytes(), []byte("hello world")))
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    func DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) {
    	var _p0 *uint16
    	_p0, status = syscall.UTF16PtrFromString(name)
    	if status != nil {
    		return
    	}
    	return _DnsQuery(_p0, qtype, options, extra, qrs, pr)
    }
    
    func _DnsQuery(name *uint16, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    	// Wait for the explosion.
    	time.Sleep(cst.tr.IdleConnTimeout * 10)
    }
    
    type funcConn struct {
    	net.Conn
    	read  func([]byte) (int, error)
    	write func([]byte) (int, error)
    }
    
    func (c funcConn) Read(p []byte) (int, error)  { return c.read(p) }
    func (c funcConn) Write(p []byte) (int, error) { return c.write(p) }
    func (c funcConn) Close() error                { return nil }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/exec.go

    				data, err := os.ReadFile(filepath.Join(p.Dir, sfile))
    				if err == nil {
    					if bytes.HasPrefix(data, []byte("TEXT")) || bytes.Contains(data, []byte("\nTEXT")) ||
    						bytes.HasPrefix(data, []byte("DATA")) || bytes.Contains(data, []byte("\nDATA")) ||
    						bytes.HasPrefix(data, []byte("GLOBL")) || bytes.Contains(data, []byte("\nGLOBL")) {
    						return fmt.Errorf("package using cgo has Go assembly file %s", sfile)
    					}
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top