- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 275 for byte (0.05 sec)
-
src/cmd/compile/internal/test/testdata/zero_test.go
import "testing" type Z1 struct { pre [8]byte mid [1]byte post [8]byte } //go:noinline func zero1_ssa(x *[1]byte) { *x = [1]byte{} } func testZero1(t *testing.T) { a := Z1{[8]byte{255, 255, 255, 255, 255, 255, 255, 255}, [1]byte{255}, [8]byte{255, 255, 255, 255, 255, 255, 255, 255}} zero1_ssa(&a.mid) want := Z1{[8]byte{255, 255, 255, 255, 255, 255, 255, 255}, [1]byte{0}, [8]byte{255, 255, 255, 255, 255, 255, 255, 255}}
Registered: 2024-06-12 16:32 - Last Modified: 2020-12-23 06:40 - 49.6K bytes - Viewed (0) -
src/crypto/des/des_test.go
[]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, []byte{0x35, 0x55, 0x50, 0xb2, 0x15, 0x0e, 0x24, 0x51}}, { []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, []byte{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef}, []byte{0x61, 0x7b, 0x3a, 0x0c, 0xe8, 0xf0, 0x71, 0x00}}, { []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
Registered: 2024-06-12 16:32 - Last Modified: 2023-08-29 16:49 - 52.2K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2024-05-03 12:58 - 56.5K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2024-05-23 03:10 - 51.8K bytes - Viewed (0) -
src/bufio/bufio_test.go
if n := len(eofR.buf); n != 0 { t.Fatalf("got %d bytes left in bufio.Reader source; want 0 bytes", n) } // To prove the point, check that there are still 5 bytes available to read. if n := r.Buffered(); n != 5 { t.Fatalf("got %d bytes buffered in bufio.Reader; want 5 bytes", n) } // This is the second read of 0 bytes. read, err = r.Read([]byte{}) if err != nil { t.Fatalf("unexpected error: %v", err)
Registered: 2024-06-12 16:32 - Last Modified: 2023-02-10 18:56 - 51.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
Registered: 2024-06-12 16:32 - Last Modified: 2024-05-08 16:12 - 84.4K bytes - Viewed (0) -
src/runtime/mbitmap.go
// 512 bytes (8 KiB / 512 bytes * 8 bytes-per-header = 128 bytes of overhead). // On 32-bit platforms, this same point is the 256 byte size class // (8 KiB / 256 bytes * 8 bytes-per-header = 256 bytes of overhead). // // Guaranteed to be exactly at a size class boundary. The reason this value is // an exclusive minimum is subtle. Suppose we're allocating a 504-byte object
Registered: 2024-06-12 16:32 - Last Modified: 2024-05-23 00:18 - 60K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2024-03-09 00:09 - 69K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2024-03-04 17:31 - 58.6K bytes - Viewed (0) -
src/crypto/tls/handshake_client_test.go
vers: VersionTLS12, random: make([]byte, 32), cipherSuite: TLS_RSA_WITH_AES_256_GCM_SHA384, } serverHelloBytes := mustMarshal(t, serverHello) s.Write([]byte{ byte(recordTypeHandshake), byte(VersionTLS12 >> 8), byte(VersionTLS12 & 0xff), byte(len(serverHelloBytes) >> 8), byte(len(serverHelloBytes)), }) s.Write(serverHelloBytes) s.Close()
Registered: 2024-06-12 16:32 - Last Modified: 2024-05-23 03:10 - 88.7K bytes - Viewed (0)