- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for testbuffer (0.21 sec)
-
pkg/proxy/util/linebuffer_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 12:38:25 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy
expect: byteBuffer.readAsByteArray() == testbuffer } def "reads source InputStream fully"() { given: def byteBuffer = new StreamByteBuffer() def byteArrayInputStream = new ByteArrayInputStream(testbuffer) when: byteBuffer.readFully(byteArrayInputStream) then: byteBuffer.totalBytesUnread() == testbuffer.length
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 13:06:08 UTC 2024 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go
} func (m *MockCacheableObject) interceptedCalls() []runtime.Identifier { return m.intercepted } type testBuffer struct { writer io.Writer t *testing.T object *MockCacheableObject } // Write implements io.Writer interface. func (b *testBuffer) Write(p []byte) (int, error) { // Before writing any byte, check if <object> has already // intercepted any CacheEncode operation.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_device_context.cc
tensorflow::AsyncValueTensor::FromTensor(device_tensor); // The result tensor should be newly allocated, which does not point to a // valid buffer yet. CHECK(!result_tensor->GetBuffer()); // Crash OK result_tensor->SetBuffer(std::move(*buffer_or)); } pjrt_buffer->GetReadyFuture().OnReady(std::move(done)); } void PjRtDeviceContext::CopyTensorInSameDevice(const Tensor* input_tensor,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc
tensorflow::AsyncValueTensor::FromTensor(tensor); if (av_tensor == nullptr || av_tensor->GetBuffer() == nullptr) { return absl::InternalError("Input tensor does not have PjRtBuffer."); } auto* c_api_buffer = dynamic_cast<xla::PjRtCApiBuffer*>(av_tensor->GetBuffer().get()); if (c_api_buffer == nullptr) { return absl::InternalError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 05:48:24 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
T[] castBuffer = (T[]) buffer; Arrays.sort(castBuffer, 0, bufferSize, comparator); if (bufferSize > k) { Arrays.fill(buffer, k, buffer.length, null); bufferSize = k; threshold = buffer[k - 1]; } // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null) T[] topK = Arrays.copyOf(castBuffer, bufferSize);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
return buf; } } static void getBuffers( SmbComTransaction req, SmbComTransactionResponse rsp ) { synchronized( cache ) { req.txn_buf = getBuffer(); rsp.txn_buf = getBuffer(); } } static public void releaseBuffer( byte[] buf ) { synchronized( cache ) { if (freeBuffers < MAX_BUFFERS) {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 2.2K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/udp.go
fwLog.Warnf("UDP write failed: %v", err) return msgBuilder.String(), err } var resBuffer bytes.Buffer buf := make([]byte, 1024+len(message)) n, err := conn.Read(buf) if err != nil && err != io.EOF { fwLog.Warnf("UDP read failed (already read %d bytes): %v", len(resBuffer.String()), err) return msgBuilder.String(), err } resBuffer.Write(buf[:n]) // format the output for forwarder response
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Oct 13 17:19:22 UTC 2022 - 3.4K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/tcp.go
return msgBuilder.String(), err } var resBuffer bytes.Buffer buf := make([]byte, 1024+len(message)) for { n, err := conn.Read(buf) if err != nil && err != io.EOF { fwLog.Warnf("TCP read failed (already read %d bytes): %v", len(resBuffer.String()), err) return msgBuilder.String(), err } resBuffer.Write(buf[:n])
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 19:13:32 UTC 2023 - 4.9K bytes - Viewed (0) -
guava/src/com/google/common/io/FileBackedOutputStream.java
@GuardedBy("this") @CheckForNull private File file; /** ByteArrayOutputStream that exposes its internals. */ private static class MemoryOutput extends ByteArrayOutputStream { byte[] getBuffer() { return buf; } int getCount() { return count; } } /** Returns the file holding the data (possibly null). */ @VisibleForTesting @CheckForNull
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 8.2K bytes - Viewed (0)