Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 1,011 for buffers (0.11 sec)

  1. okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt

    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    import okio.GzipSink
    import okio.Source
    import okio.buffer
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class CompressionInterceptorTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      val source =
        Buffer().apply {
          write("Hello World".encodeUtf8())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/UnicodeString.java

            final int zt = zterm ? 1 : 0;
    
            this.length = this.maximum_length = (short) ((len + zt) * 2);
            this.buffer = new short[len + zt];
    
            int i;
            for (i = 0; i < len; i++) {
                this.buffer[i] = (short) str.charAt(i);
            }
            if (zterm) {
                this.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)
  3. cmd/sftp-server-driver.go

    			return 0, fmt.Errorf("write offset %d is too far ahead of next offset %d", offset, w.nextOffset)
    		}
    		w.buffer[offset] = make([]byte, len(b))
    		copy(w.buffer[offset], b)
    		n = len(b)
    	}
    
    again:
    	nextOut, ok := w.buffer[w.nextOffset]
    	if ok {
    		n, err = w.w.Write(nextOut)
    		delete(w.buffer, w.nextOffset)
    		w.nextOffset += int64(n)
    		if n != len(nextOut) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 10 16:35:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/FaultHidingSink.kt

    import java.io.IOException
    import okio.Buffer
    import okio.ForwardingSink
    import okio.Sink
    
    /** A sink that never throws IOExceptions, even if the underlying sink does. */
    internal open class FaultHidingSink(
      delegate: Sink,
      val onException: (IOException) -> Unit,
    ) : ForwardingSink(delegate) {
      private var hasErrors = false
    
      override fun write(
        source: Buffer,
        byteCount: Long,
      ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. lib/wasm/wasm_exec.js

    						const n = this.mem.getInt32(sp + 24, true);
    						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
    					},
    
    					// func resetMemoryDataView()
    					"runtime.resetMemoryDataView": (sp) => {
    						sp >>>= 0;
    						this.mem = new DataView(this._inst.exports.mem.buffer);
    					},
    
    					// func nanotime1() int64
    					"runtime.nanotime1": (sp) => {
    						sp >>>= 0;
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Sun Dec 08 15:34:47 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComDelete.java

            return dstIndex - start;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java

            return 0;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
            isLoggedInAsGuest = ((buffer[bufferIndex] & 0x01) == 0x01) == true;
            bufferIndex += 2;
            if (extendedSecurity) {
                final int blobLength = readInt2(buffer, bufferIndex);
                bufferIndex += 2;
                blob = new byte[blobLength];
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.headers[":authority"]).isEqualTo("privateobject.com")
      }
    
      private fun gzip(bytes: String): Buffer {
        val bytesOut = Buffer()
        val sink = GzipSink(bytesOut).buffer()
        sink.writeUtf8(bytes)
        sink.close()
        return bytesOut
      }
    
      internal inner class AsyncRequest(
        val path: String,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

            upgradeRequest(),
          ).execute()
          .use { response ->
            assertThat(response.code).isEqualTo(HTTP_SWITCHING_PROTOCOLS)
            val socket = response.socket!!
            socket.sink.buffer().use { sink ->
              socket.source.buffer().use { source ->
                sink.writeUtf8("client says hello\n")
                sink.flush()
    
                assertThat(source.readUtf8Line()).isEqualTo("server says hello")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

    import okio.BufferedSink
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.FileSystem
    import okio.Path
    import okio.Path.Companion.toPath
    import okio.buffer
    
    /**
     * Downloads the public suffix list from https://publicsuffix.org/list/public_suffix_list.dat and
     * transforms the file into an efficient format used by OkHttp.
     *
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Aug 06 05:33:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top