Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 954 for buffer1 (0.16 sec)

  1. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            byte[] buffer = new byte[8];
            int bufferIndex = 0;
    
            SMBUtil.writeInt2(status, buffer, bufferIndex);
            bufferIndex += 2;
            SMBUtil.writeInt2(0, buffer, bufferIndex);
            bufferIndex += 2;
            SMBUtil.writeInt2(0, buffer, bufferIndex);
            bufferIndex += 2;
            SMBUtil.writeInt2(0, buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

                    SmbComReadAndX readCmd = invocation.getArgument(0);
                    SmbComReadAndXResponse response = invocation.getArgument(1);
                    response.dataLength = 1;
                    // The response buffer points to the internal tmp buffer
                    if (response.b != null && response.off < response.b.length) {
                        response.b[response.off] = 42; // Return byte value 42
                    }
                    return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

    import kotlin.test.Test
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.IOException
    import okio.Source
    import okio.buffer
    
    class ResponseBodyTest {
      @Test
      fun sourceEmpty() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

            // Encode first
            byte[] buffer = new byte[256];
            int encodedSize = context.encode(buffer, 0);
    
            // Create new context for decoding
            CompressionNegotiateContext decodedContext = new CompressionNegotiateContext();
            int decodedSize = decodedContext.decode(buffer, 0, encodedSize);
    
            assertEquals(encodedSize, decodedSize);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpMemoryRegion.java

        /**
         * Create new TCP memory region
         *
         * @param buffer memory buffer
         * @param access access permissions (ignored for TCP)
         */
        public TcpMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) {
            super(buffer, access);
        }
    
        @Override
        public void invalidate() {
            // No real invalidation needed for TCP
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

                deflater.finish();
    
                ByteArrayOutputStream baos = new ByteArrayOutputStream(length);
                byte[] buffer = new byte[1024];
    
                while (!deflater.finished()) {
                    int compressedSize = deflater.deflate(buffer);
                    baos.write(buffer, 0, compressedSize);
                }
    
                deflater.end();
                return baos.toByteArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

            override fun onRetryChange(timeMs: Long) {
              callbacks.add(timeMs)
            }
          }
        val buffer = Buffer().writeUtf8(source)
        val reader = ServerSentEventReader(buffer, callback)
        while (reader.processNextEvent()) {
        }
        assertThat(buffer.size, "Unconsumed buffer: ${buffer.readUtf8()}")
          .isEqualTo(0)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/archive/zip/writer_test.go

    		testReadFile(t, r.File[i], &wt)
    	}
    }
    
    func TestWriterFlush(t *testing.T) {
    	var buf bytes.Buffer
    	w := NewWriter(struct{ io.Writer }{&buf})
    	_, err := w.Create("foo")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if buf.Len() > 0 {
    		t.Fatalf("Unexpected %d bytes already in buffer", buf.Len())
    	}
    	if err := w.Flush(); err != nil {
    		t.Fatal(err)
    	}
    	if buf.Len() == 0 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        out.write(b);
    
        verify(hashFunction).newHasher();
        verify(hasher).putByte((byte) b);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArray() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(buf);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/fscc/FileFsSizeInformation.java

        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            this.alloc = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.free = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.sectPerAlloc = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top