Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 92 for writeType (0.13 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

      }
    
      /** Returns a byte string that differs from this one by one bit. */
      private fun ByteString.offByOneBit(): ByteString {
        return Buffer()
          .write(this, 0, size - 1)
          .writeByte(this[size - 1].toInt() xor 1)
          .readByteString()
      }
    
      private fun date(s: String): Date {
        return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").run {
          timeZone = TimeZone.getTimeZone("GMT")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        Files.copy(i18nFile, temp);
        assertTrue(Files.equal(i18nFile, temp));
    
        Files.copy(asciiFile, temp);
        RandomAccessFile rf = new RandomAccessFile(temp, "rw");
        rf.writeByte(0);
        rf.close();
        assertEquals(asciiFile.length(), temp.length());
        assertFalse(Files.equal(asciiFile, temp));
    
        assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. cmd/object-api-utils.go

    		if added > 0 || e != "" {
    			if added > 0 {
    				dst.WriteByte(SlashSeparatorChar)
    			}
    			dst.WriteString(e)
    			added += len(e)
    		}
    	}
    
    	if pathNeedsClean(dst.Bytes()) {
    		s := path.Clean(dst.String())
    		if trailingSlash {
    			return s + SlashSeparator
    		}
    		return s
    	}
    	if trailingSlash {
    		dst.WriteByte(SlashSeparatorChar)
    	}
    	return dst.String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  4. api/go1.10.txt

    pkg strings, method (*Builder) Len() int
    pkg strings, method (*Builder) Reset()
    pkg strings, method (*Builder) String() string
    pkg strings, method (*Builder) Write([]uint8) (int, error)
    pkg strings, method (*Builder) WriteByte(uint8) error
    pkg strings, method (*Builder) WriteRune(int32) (int, error)
    pkg strings, method (*Builder) WriteString(string) (int, error)
    pkg strings, type Builder struct
    pkg syscall (freebsd-386), const SYS_UTIMENSAT = 547
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        }
      }
    
      @Test
      fun singleByteReadIsSigned() {
        server.enqueue(
          MockResponse.Builder()
            .body(
              Buffer()
                .writeByte(-2)
                .writeByte(-1),
            )
            .build(),
        )
        val response = getResponse(newRequest("/"))
        val inputStream = response.body.byteStream()
        assertThat(inputStream.read()).isEqualTo(254)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    	var s strings.Builder
    	if x&xlFlagFreeVersion != 0 {
    		s.WriteString("FreeVersion")
    	}
    	if x&xlFlagUsesDataDir != 0 {
    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("UsesDD")
    	}
    	if x&xlFlagInlineData != 0 {
    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("Inline")
    	}
    	return s.String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("b", "banana"), false)
        }
        val sink = stream.getSink().buffer()
        assertFailsWith<IOException> {
          sink.writeByte(0)
          sink.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream finished")
        }
        assertFailsWith<IOException> {
          stream.getSource().read(Buffer(), 1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  8. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer;
    HSPLokio/Buffer;->write([B)Lokio/Buffer;
    HSPLokio/Buffer;->write([BII)Lokio/Buffer;
    HSPLokio/Buffer;->writeAll(Lokio/Source;)J
    HSPLokio/Buffer;->writeByte(I)Lokio/Buffer;
    HSPLokio/Buffer;->writeByte(I)Lokio/BufferedSink;
    HSPLokio/Buffer;->writeInt(I)Lokio/Buffer;
    HSPLokio/Buffer;->writeShort(I)Lokio/Buffer;
    HSPLokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    func BenchmarkWriterEmpty(b *testing.B) {
    	b.ReportAllocs()
    	str := strings.Repeat("x", 1<<10)
    	bs := []byte(str)
    	for i := 0; i < b.N; i++ {
    		bw := NewWriter(io.Discard)
    		bw.Flush()
    		bw.WriteByte('a')
    		bw.Flush()
    		bw.WriteRune('B')
    		bw.Flush()
    		bw.Write(bs)
    		bw.Flush()
    		bw.WriteString(str)
    		bw.Flush()
    	}
    }
    
    func BenchmarkWriterFlush(b *testing.B) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. api/go1.14.txt

    pkg hash/maphash, method (*Hash) Sum([]uint8) []uint8
    pkg hash/maphash, method (*Hash) Sum64() uint64
    pkg hash/maphash, method (*Hash) Write([]uint8) (int, error)
    pkg hash/maphash, method (*Hash) WriteByte(uint8) error
    pkg hash/maphash, method (*Hash) WriteString(string) (int, error)
    pkg hash/maphash, type Hash struct
    pkg hash/maphash, type Seed struct
    pkg log, const Lmsgprefix = 64
    pkg log, const Lmsgprefix ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
Back to top