- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 111 for write_bytes (0.07 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt
throw ProtocolException("unexpected address: " + toSocket.localAddress) } // Write the reply. fromSink.writeByte(VERSION_5) fromSink.writeByte(REPLY_SUCCEEDED) fromSink.writeByte(0) fromSink.writeByte(ADDRESS_TYPE_IPV4) fromSink.write(localAddress) fromSink.writeShort(toSocket.localPort) fromSink.emit()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 7.6K bytes - Click Count (0) -
clause/values.go
if len(values.Columns) > 0 { builder.WriteByte('(') for idx, column := range values.Columns { if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column) } builder.WriteByte(')') builder.WriteString(" VALUES ") for idx, value := range values.Values { if idx > 0 { builder.WriteByte(',') } builder.WriteByte('(') builder.AddVar(builder, value...)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 24 03:35:19 GMT 2020 - 849 bytes - Click Count (0) -
guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
/* Write out various test values NORMALLY */ out.write(new byte[] {-100, 100}); out.writeBoolean(true); out.writeBoolean(false); out.writeByte(100); out.writeByte(-100); out.writeByte((byte) 200); out.writeChar('a'); out.writeShort((short) -30000); out.writeShort((short) 50000); out.writeInt(0xCAFEBABE); out.writeLong(0xDEADBEEFCAFEBABEL);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.9K bytes - Click Count (0) -
clause/delete.go
type Delete struct { Modifier string } func (d Delete) Name() string { return "DELETE" } func (d Delete) Build(builder Builder) { builder.WriteString("DELETE") if d.Modifier != "" { builder.WriteByte(' ') builder.WriteString(d.Modifier) } } func (d Delete) MergeClause(clause *Clause) { clause.Name = "" clause.Expression = dCreated: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Mar 09 09:07:00 GMT 2020 - 359 bytes - Click Count (0) -
utils/tests/dummy_dialecter.go
case '.': if continuousBacktick > 0 || !selfQuoted { shiftDelimiter = 0 underQuoted = false continuousBacktick = 0 writer.WriteByte('`') } writer.WriteByte(v) continue default: if shiftDelimiter-continuousBacktick <= 0 && !underQuoted { writer.WriteByte('`') underQuoted = true if selfQuoted = continuousBacktick > 0; selfQuoted { continuousBacktick -= 1 } }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Mar 06 06:03:31 GMT 2023 - 2.2K bytes - Click Count (0) -
okhttp/src/commonTest/kotlin/okhttp3/internal/IsProbablyUtf8Test.kt
assertThat(Buffer().writeUtf8("Слава Україні!").isProbablyUtf8(16L)).isTrue() assertThat(Buffer().writeByte(0x80).isProbablyUtf8(16L)).isTrue() assertThat(Buffer().writeByte(0x00).isProbablyUtf8(16L)).isFalse() assertThat(Buffer().writeByte(0xc0).isProbablyUtf8(16L)).isFalse() } @Test fun doesNotConsumeBuffer() { val buffer = Buffer() buffer.writeUtf8("hello ".repeat(1024))
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Oct 06 22:47:06 GMT 2025 - 2.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt
): Long { var byteCount = 0L val buffer: Buffer = if (countBytes) Buffer() else sink!!.buffer for (i in 0 until encodedNames.size) { if (i > 0) buffer.writeByte('&'.code) buffer.writeUtf8(encodedNames[i]) buffer.writeByte('='.code) buffer.writeUtf8(encodedValues[i]) } if (countBytes) { byteCount = buffer.size buffer.clear() } return byteCount }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt
val utf8ByteCount = label.utf8Size() require(utf8ByteCount == label.length.toLong()) { "non-ascii hostname: $host" } nameBuf.writeByte(utf8ByteCount.toInt()) nameBuf.writeUtf8(label) } nameBuf.writeByte(0) // end nameBuf.copyTo(this, 0, nameBuf.size) writeShort(type) writeShort(1) // CLASS_IN }.readByteString()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt
// Copy all the basic code points to the output. var b = 0 for (codePoint in input) { if (codePoint < INITIAL_N) { result.writeByte(codePoint) b++ } } // Copy a delimiter if any basic code points were emitted. if (b > 0) result.writeByte('-'.code) var n = INITIAL_N var delta = 0 var bias = INITIAL_BIAS var h = b while (h < input.size) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 8.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
val message2 = "hello 2".encodeUtf8() DeflaterSink(buffer, Deflater(Deflater.DEFAULT_COMPRESSION, true)).use { sink -> sink.write(Buffer().write(message1), message1.size.toLong()) } buffer.writeByte(0x00) // Trailing data. We use the Okio segment size to make sure it's still in the input buffer. buffer.write(ByteArray(8192)) inflater.inflate(buffer) assertThat(buffer.readByteString()).isEqualTo(message1)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:26:07 GMT 2025 - 6.4K bytes - Click Count (0)