Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 979 for buffer (0.03 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

                assertEquals(0, smbComTreeDisconnect.readBytesWireFormat(buffer, i));
            }
        }
    
        /**
         * Test boundary conditions for buffer indices
         */
        @Test
        @DisplayName("Test boundary conditions for buffer indices")
        public void testBoundaryConditions() {
            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
            byte[] buffer = new byte[100];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

        }
    
        /**
         * Decode a transform header from byte array
         *
         * @param buffer
         *            buffer to decode from
         * @param bufferIndex
         *            offset in buffer
         * @return new transform header instance
         */
        public static Smb2TransformHeader decode(final byte[] buffer, int bufferIndex) {
            final Smb2TransformHeader header = new Smb2TransformHeader();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        mockResponse.headers = headersOf()
        mockResponse.trailers = headersOf()
        mockResponse = mockResponse.removeHeader("")
        var body: Buffer? = mockResponse.getBody()
        mockResponse = mockResponse.setBody(Buffer())
        mockResponse = mockResponse.setChunkedBody(Buffer(), 0)
        mockResponse = mockResponse.setChunkedBody("", 0)
        var socketPolicy: SocketPolicy = mockResponse.socketPolicy
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/smb1/dcerpc/UnicodeString.java

            final int zt = zterm ? 1 : 0;
    
            length = maximum_length = (short) ((len + zt) * 2);
            buffer = new short[len + zt];
    
            int i;
            for (i = 0; i < len; i++) {
                buffer[i] = (short) str.charAt(i);
            }
            if (zterm) {
                buffer[i] = (short) 0;
            }
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 9) {
                throw new SMBProtocolDecodingException("Structure size != 9");
            }
    
            this.sessionFlags = SMBUtil.readInt2(buffer, bufferIndex + 2);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  9. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

            byte[] buffer = new byte[0];
            int result = smbComOpenAndX.readParameterWordsWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
        /**
         * Test readBytesWireFormat method.
         */
        @Test
        void testReadBytesWireFormat() {
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx);
            byte[] buffer = new byte[0];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

    import java.io.EOFException
    import java.io.IOException
    import java.net.ProtocolException
    import okhttp3.internal.http1.HeadersReader
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString.Companion.encodeUtf8
    import okio.Options
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    /**
     * Reads a stream of [RFC 2046][rfc_2046] multipart body parts. Callers read parts one-at-a-time
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top