- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 143 for write_bytes (0.1 sec)
-
cmd/streaming-v4-unsigned.go
// Read value for { v, err := cr.reader.ReadByte() if err != nil { if err == io.EOF { return io.ErrUnexpectedEOF } } if v != '\r' { valueBuffer.WriteByte(v) continue } // Must end with \r\n\r\n var tmp [3]byte _, err = io.ReadFull(cr.reader, tmp[:]) if err != nil { if err == io.EOF { return io.ErrUnexpectedEOF } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat May 06 02:53:12 UTC 2023 - 6.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt
@Test fun serverMessageLengthShort() { // Create a payload which will overflow the normal payload byte size. val payload = Buffer() while (payload.completeSegmentByteCount() <= PAYLOAD_BYTE_MAX) { payload.writeByte('0'.code) } serverWriter.writeMessageFrame(OPCODE_BINARY, payload.snapshot()) // Write directly to the unbuffered sink. This ensures it will become single frame.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.3K bytes - Viewed (0) -
docs/sts/web-identity.go
} if len(c.Scopes) > 0 { v.Set("scope", strings.Join(c.Scopes, " ")) } v.Set("state", state) v.Set("nonce", state) if strings.Contains(c.Endpoint.AuthURL, "?") { buf.WriteByte('&') } else { buf.WriteByte('?') } buf.WriteString(v.Encode()) return buf.String() } func main() { flag.Parse() if clientID == "" { flag.PrintDefaults() return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 19 09:13:33 UTC 2023 - 7.8K bytes - Viewed (0) -
cmd/mrf_gen.go
err = msgp.WrapError(err, "VersionID") return } // write "Versions" err = en.Append(0xa8, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73) if err != nil { return } err = en.WriteBytes(z.Versions) if err != nil { err = msgp.WrapError(err, "Versions") return } // write "SetIndex" err = en.Append(0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78) if err != nil { return
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:26:05 UTC 2024 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java
// TODO /* private File file1; @Override public void setUp() throws Exception { super.setUp(); file1 = File.createTempFile("synonym", ".txt"); FileUtil.writeBytes(file1.getAbsolutePath(), "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2" .getBytes(Constants.UTF_8)); // TODO set up opensearch and dictionaryManager
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
*/ fun concatLengthPrefixed(protocols: List<Protocol>): ByteArray { val result = Buffer() for (protocol in alpnProtocolNames(protocols)) { result.writeByte(protocol.length) result.writeUtf8(protocol) } return result.readByteArray() } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.8K bytes - Viewed (0) -
src/bytes/buffer_test.go
n, err := buf.Write(testBytes[0:1]) if want := 1; err != nil || n != want { t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil) } check(t, "TestBasicOperations (4)", &buf, "a") buf.WriteByte(testString[1]) check(t, "TestBasicOperations (5)", &buf, "ab") n, err = buf.Write(testBytes[2:26]) if want := 24; err != nil || n != want { t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Sep 03 20:55:15 UTC 2024 - 18.6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex_test.go
var buf strings.Builder for { tok := input.Next() if tok == scanner.EOF { return buf.String() } if tok == '#' { continue } if buf.Len() > 0 { buf.WriteByte('.') } buf.WriteString(input.Text()) } } type badLexTest struct { input string error string } var badLexTests = []badLexTest{ { "3 #define foo bar\n",
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
@Override public void setUp() throws Exception { super.setUp(); final File propFile = File.createTempFile("system", ".properties"); propFile.deleteOnExit(); FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes()); ComponentUtil.register(new DynamicProperties(propFile), "systemProperties"); crawlingConfigHelper = new CrawlingConfigHelper(); crawlingConfigHelper.init();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 23.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
} } return new String(buf, 0, size); } catch (final IOException e) { throw new IORuntimeException(e); } } public static void writeBytes(final String pathname, final byte[] bytes) { try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) { ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9K bytes - Viewed (0)