Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for gbyte (0.06 sec)

  1. src/runtime/mbitmap.go

    //
    //go:nowritebarrier
    //go:nosplit
    func subtractb(p *byte, n uintptr) *byte {
    	// Note: wrote out full expression instead of calling add(p, -n)
    	// to reduce the number of temporaries generated by the
    	// compiler for this trivial expression during inlining.
    	return (*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(p)) - n))
    }
    
    // add1 returns the byte pointer p+1.
    //
    //go:nowritebarrier
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  2. src/crypto/des/des_test.go

    )
    
    type CryptTest struct {
    	key []byte
    	in  []byte
    	out []byte
    }
    
    // some custom tests for DES
    var encryptDESTests = []CryptTest{
    	{
    		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
    		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
    		[]byte{0x8c, 0xa6, 0x4d, 0xe9, 0xc1, 0xb1, 0x23, 0xa7}},
    	{
    		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
    		[]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 16:49:56 UTC 2023
    - 52.2K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	{"TrimRight", []byte("☺"), "☺", []byte{}},
    	{"TrimPrefix", nil, "", nil},
    	{"TrimPrefix", []byte{}, "", []byte{}},
    	{"TrimPrefix", []byte{'a'}, "a", []byte{}},
    	{"TrimPrefix", []byte("☺"), "☺", []byte{}},
    	{"TrimSuffix", nil, "", nil},
    	{"TrimSuffix", []byte{}, "", []byte{}},
    	{"TrimSuffix", []byte{'a'}, "a", []byte{}},
    	{"TrimSuffix", []byte("☺"), "☺", []byte{}},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/fmt/fmt_test.go

    	{"%#012v", []byte{}, "[]byte{}"},
    	{"%6v", []byte{1, 11, 111}, "[     1     11    111]"},
    	{"%06v", []byte{1, 11, 111}, "[000001 000011 000111]"},
    	{"%-6v", []byte{1, 11, 111}, "[1      11     111   ]"},
    	{"%-06v", []byte{1, 11, 111}, "[1      11     111   ]"},
    	{"%#v", []byte{1, 11, 111}, "[]byte{0x1, 0xb, 0x6f}"},
    	{"%#6v", []byte{1, 11, 111}, "[]byte{   0x1,    0xb,   0x6f}"},
    	{"%#06v", []byte{1, 11, 111}, "[]byte{0x000001, 0x00000b, 0x00006f}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	asid          uint16
    	_             [2]byte
    	tnLuName      [8]byte
    	tnMonGrp      uint32
    	tnAppl        [8]byte
    	applData      [40]byte
    	nInterface    [16]byte
    	dVipa         [16]byte
    	dVipaPfx      uint16
    	dVipaPort     uint16
    	dVipaFamily   byte
    	_             [3]byte
    	destXCF       [16]byte
    	destXCFPfx    uint16
    	destXCFFamily byte
    	_             [1]byte
    	targIP        [16]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_messages.go

    func (m *serverHelloDoneMsg) marshal() ([]byte, error) {
    	x := make([]byte, 4)
    	x[0] = typeServerHelloDone
    	return x, nil
    }
    
    func (m *serverHelloDoneMsg) unmarshal(data []byte) bool {
    	return len(data) == 4
    }
    
    type clientKeyExchangeMsg struct {
    	ciphertext []byte
    }
    
    func (m *clientKeyExchangeMsg) marshal() ([]byte, error) {
    	length := len(m.ciphertext)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	sa.raw.Family = AF_BLUETOOTH
    	psm := (*[2]byte)(unsafe.Pointer(&sa.raw.Psm))
    	psm[0] = byte(sa.PSM)
    	psm[1] = byte(sa.PSM >> 8)
    	for i := 0; i < len(sa.Addr); i++ {
    		sa.raw.Bdaddr[i] = sa.Addr[len(sa.Addr)-1-i]
    	}
    	cid := (*[2]byte)(unsafe.Pointer(&sa.raw.Cid))
    	cid[0] = byte(sa.CID)
    	cid[1] = byte(sa.CID >> 8)
    	sa.raw.Bdaddr_type = sa.AddrType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/authentication/v1/generated.pb.go

    func (*BoundObjectReference) ProtoMessage() {}
    func (*BoundObjectReference) Descriptor() ([]byte, []int) {
    	return fileDescriptor_d1237cbf54dccd53, []int{0}
    }
    func (m *BoundObjectReference) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *BoundObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    	n, err := m.MarshalToSizedBuffer(b)
    	if err != nil {
    		return nil, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 72K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    func packUint16(msg []byte, field uint16) []byte {
    	return append(msg, byte(field>>8), byte(field))
    }
    
    func unpackUint16(msg []byte, off int) (uint16, int, error) {
    	if off+uint16Len > len(msg) {
    		return 0, off, errBaseLen
    	}
    	return uint16(msg[off])<<8 | uint16(msg[off+1]), off + uint16Len, nil
    }
    
    func skipUint16(msg []byte, off int) (int, error) {
    	if off+uint16Len > len(msg) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  10. src/bufio/bufio_test.go

    func TestUnreadByteOthers(t *testing.T) {
    	// A list of readers to use in conjunction with UnreadByte.
    	var readers = []func(*Reader, byte) ([]byte, error){
    		(*Reader).ReadBytes,
    		(*Reader).ReadSlice,
    		func(r *Reader, delim byte) ([]byte, error) {
    			data, err := r.ReadString(delim)
    			return []byte(data), err
    		},
    		// ReadLine doesn't fit the data/pattern easily
    		// so we leave it out. It should be covered via
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
Back to top