Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 737 for gbyte (0.13 sec)

  1. internal/ringbuffer/ring_buffer_test.go

    		<-done
    	}
    	testCancel(func() {
    		rb.Write([]byte{sz + 5: 1})
    	})
    	testCancel(func() {
    		rb.Write(make([]byte, sz))
    		rb.WriteByte(0)
    	})
    	testCancel(func() {
    		rb.Read([]byte{10: 1})
    	})
    	testCancel(func() {
    		rb.ReadByte()
    	})
    	testCancel(func() {
    		rb.Write(make([]byte, sz))
    		rb.Flush()
    	})
    }
    
    func TestWriteAfterWriterClose(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. src/encoding/base32/base32.go

    )
    
    // NewEncoding returns a new padded Encoding defined by the given alphabet,
    // which must be a 32-byte string that contains unique byte values and
    // does not contain the padding character or CR / LF ('\r', '\n').
    // The alphabet is treated as a sequence of byte values
    // without any special treatment for multi-byte UTF-8.
    // The resulting Encoding uses the default padding character ('='),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. src/crypto/tls/ticket.go

    	// which the ticket was received on the client.
    	createdAt         uint64 // seconds since UNIX epoch
    	secret            []byte // master secret for TLS 1.2, or the PSK for TLS 1.3
    	extMasterSecret   bool
    	peerCertificates  []*x509.Certificate
    	activeCertHandles []*activeCert
    	ocspResponse      []byte
    	scts              [][]byte
    	verifiedChains    [][]*x509.Certificate
    	alpnProtocol      string // only set if EarlyData is true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. src/crypto/cipher/gcm.go

    func sliceForAppend(in []byte, n int) (head, tail []byte) {
    	if total := len(in) + n; cap(in) >= total {
    		head = in[:total]
    	} else {
    		head = make([]byte, total)
    		copy(head, in)
    	}
    	tail = head[len(in):]
    	return
    }
    
    // counterCrypt crypts in to out using g.cipher in counter mode.
    func (g *gcm) counterCrypt(out, in []byte, counter *[gcmBlockSize]byte) {
    	var mask [gcmBlockSize]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

       *
       * <p>This abstraction allows us to use single-instruction load and put when available, or fall
       * back on the slower approach of using Longs.fromBytes(byte...).
       */
      private interface LittleEndianBytes {
        long getLongLittleEndian(byte[] array, int offset);
    
        void putLongLittleEndian(byte[] array, int offset, long value);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. src/crypto/x509/oid.go

    		length += base128IntLength(v)
    	}
    
    	der := make([]byte, 0, length)
    	der = appendBase128Int(der, oid[0]*40+oid[1])
    	for _, v := range oid[2:] {
    		der = appendBase128Int(der, v)
    	}
    	return OID{der}, nil
    }
    
    func base128IntLength(n uint64) int {
    	if n == 0 {
    		return 1
    	}
    	return (bits.Len64(n) + 6) / 7
    }
    
    func appendBase128Int(dst []byte, n uint64) []byte {
    	for i := base128IntLength(n) - 1; i >= 0; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/sha3/xor.go

    func xorIn(d *state, buf []byte) {
    	if cpu.IsBigEndian {
    		for i := 0; len(buf) >= 8; i++ {
    			a := binary.LittleEndian.Uint64(buf)
    			d.a[i] ^= a
    			buf = buf[8:]
    		}
    	} else {
    		ab := (*[25 * 64 / 8]byte)(unsafe.Pointer(&d.a))
    		subtle.XORBytes(ab[:], ab[:], buf)
    	}
    }
    
    // copyOut copies uint64s to a byte buffer.
    func copyOut(d *state, b []byte) {
    	if cpu.IsBigEndian {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 854 bytes
    - Viewed (0)
  8. src/syscall/syscall_darwin.go

    //sys	Mkfifo(path string, mode uint32) (err error)
    //sys	Mknod(path string, mode uint32, dev int) (err error)
    //sys	Mlock(b []byte) (err error)
    //sys	Mlockall(flags int) (err error)
    //sys	Mprotect(b []byte, prot int) (err error)
    //sys	msync(b []byte, flags int) (err error)
    //sys	Munlock(b []byte) (err error)
    //sys	Munlockall() (err error)
    //sys	Open(path string, mode int, perm uint32) (fd int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/crypto/tls/ech.go

    	AEADID uint16
    }
    
    type echExtension struct {
    	Type uint16
    	Data []byte
    }
    
    type echConfig struct {
    	raw []byte
    
    	Version uint16
    	Length  uint16
    
    	ConfigID             uint8
    	KemID                uint16
    	PublicKey            []byte
    	SymmetricCipherSuite []echCipher
    
    	MaxNameLength uint8
    	PublicName    []byte
    	Extensions    []echExtension
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. src/debug/buildinfo/buildinfo.go

    //go:linkname errNotGoExe
    var errNotGoExe = errors.New("not a Go executable")
    
    // The build info blob left by the linker is identified by
    // a 16-byte header, consisting of buildInfoMagic (14 bytes),
    // the binary's pointer size (1 byte),
    // and whether the binary is big endian (1 byte).
    var buildInfoMagic = []byte("\xff Go buildinf:")
    
    // ReadFile returns build information embedded in a Go binary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top