- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,045 for bytesB (0.16 sec)
-
src/internal/saferio/io_test.go
package saferio import ( "bytes" "io" "testing" ) func TestReadData(t *testing.T) { const count = 100 input := bytes.Repeat([]byte{'a'}, count) t.Run("small", func(t *testing.T) { got, err := ReadData(bytes.NewReader(input), count) if err != nil { t.Fatal(err) } if !bytes.Equal(got, input) { t.Errorf("got %v, want %v", got, input) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/util/NumberUtilTest.groovy
} def "formats bytes (#bytes -> #humanReadableString)"(long bytes, String humanReadableString) { expect: formatBytes(bytes) == humanReadableString formatBytes(-bytes) == "-$humanReadableString" where: bytes | humanReadableString 1 | "1 B" 999 | "999 B"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
src/encoding/pem/pem.go
Headers map[string]string // Optional headers. Bytes []byte // The decoded bytes of the contents. Typically a DER encoded ASN.1 structure. } // getLine results the first \r\n or \n delineated line from the given byte // array. The line does not include trailing whitespace or the trailing new // line bytes. The remainder of the byte array (also not including the new line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.6K bytes - Viewed (0) -
src/internal/zstd/fuzz_test.go
for _, test := range tests { f.Add([]byte(test.uncompressed)) } // Add some larger data, as that has more interesting compression. f.Add(bytes.Repeat([]byte("abcdefghijklmnop"), 256)) var buf bytes.Buffer for i := 0; i < 256; i++ { buf.WriteByte(byte(i)) } f.Add(bytes.Repeat(buf.Bytes(), 64)) f.Add(bigData(f)) f.Fuzz(func(t *testing.T, b []byte) { cmd := exec.Command(zstd, "-z")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 04:10:45 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/proxy/util/linebuffer.go
// WriteBytes is part of LineBuffer func (buf *realLineBuffer) WriteBytes(bytes []byte) { buf.b.Write(bytes) buf.b.WriteByte('\n') buf.lines++ } // Reset is part of LineBuffer func (buf *realLineBuffer) Reset() { buf.b.Reset() buf.lines = 0 } // Bytes is part of LineBuffer func (buf *realLineBuffer) Bytes() []byte { return buf.b.Bytes() } // String is part of LineBuffer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/api/storagemigration/v1alpha1/types.go
// +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Specification of the migration. // +optional Spec StorageVersionMigrationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Status of the migration. // +optional Status StorageVersionMigrationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // Spec of the storage version migration.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 5.4K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux.go
// - length [2 bytes] // length includes bytes for defining the length itself, bytes for defining the type, // and the actual bytes of data without any padding. // - type [2 bytes] // - data [variable-sized] // - padding [optional] // // Example. Counter{Name: "dummy-metric", Packets: 123, Bytes: 54321} in netlink message: // // struct nfgenmsg{ // __u8 nfgen_family: AF_NETLINK
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.pyi
quantization_options_serialized: bytes, *, signature_def_map_serialized: dict[str, bytes], py_function_library: py_function_lib.PyFunctionLibrary, ) -> Any: ... # Status # LINT.ThenChange() # LINT.IfChange(quantize_ptq_static_range) def quantize_ptq_static_range( src_saved_model_path: str, dst_saved_model_path: str, quantization_options_serialized: bytes, *, signature_keys: list[str],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 03:47:17 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/testFixtures/groovy/org/gradle/internal/serialize/SerializerSpec.groovy
} <T> T fromBytes(byte[] bytes, Serializer<T> serializer) { return serializer.read(getDecoder().newInstance(new ByteArrayInputStream(bytes))) } <T> byte[] toBytes(T value, Serializer<T> serializer) { def bytes = new ByteArrayOutputStream() def encoder = getEncoder().newInstance(bytes) serializer.write(encoder, value) encoder.flush()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/v1/types.go
// IP address of the host to which the pod is assigned. Empty if not yet scheduled. // +optional HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` // IP address allocated to the pod. Routable at least within the cluster. // Empty if not yet allocated. // +optional PodIP string `json:"podIP,omitempty" protobuf:"bytes,6,opt,name=podIP"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 20 15:45:02 UTC 2024 - 9.1K bytes - Viewed (0)