- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 418 for 123 (0.11 seconds)
-
src/test/java/org/codelibs/core/lang/StringUtilTest.java
} /** * @throws Exception */ @Test public void testToHex() throws Exception { assertEquals("010203", StringUtil.toHex(new byte[] { 1, 2, 3 })); } /** * @throws Exception */ @Test public void testToHex2() throws Exception { assertEquals("0001", StringUtil.toHex(1)); } /**Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
void testMinimumBufferSize() { // Given byte[] minBuffer = new byte[EXPECTED_SIZE]; SrvCopychunk chunk = new SrvCopychunk(1, 2, 3); // When int bytesWritten = chunk.encode(minBuffer, 0); // Then assertEquals(EXPECTED_SIZE, bytesWritten);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.4K bytes - Click Count (0) -
src/bufio/bufio_test.go
var wr = NewWriter(writerWithReadFromError{}) if _, err := wr.ReadFrom(strings.NewReader("test2")); err == nil { t.Fatal("expected ReadFrom returns error, got nil") } if _, err := wr.Write([]byte("123")); err == nil { t.Fatal("expected Write returns error, got nil") } } type writeErrorOnlyWriter struct{} func (w writeErrorOnlyWriter) Write(p []byte) (n int, err error) {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 07 01:08:54 GMT 2025 - 51.6K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Ints.java
} /** * Returns a string containing the supplied {@code int} values separated by {@code separator}. For * example, {@code join("-", 1, 2, 3)} returns the string {@code "1-2-3"}. * * @param separator the text that should appear between consecutive values in the resulting string * (but not at the start or end)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 31.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
SetMultimap<String, Integer> multimap = create(); multimap.putAll("bar", asList(3, 1, 2)); multimap.putAll("foo", asList(2, 3, 1, -1, 4)); assertThat(multimap.toString()).isEqualTo("{bar=[1, 2, 3], foo=[-1, 1, 2, 3, 4]}"); } public void testOrderedGet() { TreeMultimap<String, Integer> multimap = createPopulate(); assertThat(multimap.get("foo")).containsExactly(1, 3, 7).inOrder();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
// Act int decodedSize = context.decode(buffer, 0, buffer.length); // Assert assertEquals(8, decodedSize); assertArrayEquals(new int[] { 1, 2, 3 }, context.getCiphers()); } @Test @DisplayName("Should handle empty cipher array in decode") void testDecodeEmptyCipherArray() throws SMBProtocolDecodingException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.4K bytes - Click Count (0) -
docs/ja/docs/advanced/stream-data.md
## `yield` を使った `StreamingResponse` { #a-streamingresponse-with-yield } path operation 関数で `response_class=StreamingResponse` を宣言すると、`yield` を使ってデータをチャンクごとに順次送信できます。 {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *} FastAPI は各データチャンクをそのまま `StreamingResponse` に渡し、JSON などに変換しようとはしません。 ### 非 async な path operation 関数 { #non-async-path-operation-functions } `async` なしの通常の `def` 関数でも同様に `yield` を使えます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 6.7K bytes - Click Count (0) -
guava/src/com/google/common/base/Stopwatch.java
* Stopwatch stopwatch = Stopwatch.createStarted(); * doSomething(); * stopwatch.stop(); // optional * * Duration duration = stopwatch.elapsed(); * * log.info("time: " + stopwatch); // formatted string like "12.3 ms" * } * * <p>The state-changing methods are not idempotent; it is an error to start or stop a stopwatch * that is already in the desired state. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 9.2K bytes - Click Count (0) -
docs/ko/docs/advanced/stream-data.md
## `yield`와 함께 `StreamingResponse` 사용하기 { #a-streamingresponse-with-yield } 경로 처리 함수에서 `response_class=StreamingResponse`를 선언하면 `yield`를 사용해 데이터 청크를 순차적으로 보낼 수 있습니다. {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *} FastAPI는 각 데이터 청크를 있는 그대로 `StreamingResponse`에 전달하며, JSON 등으로 변환하려고 하지 않습니다. ### async가 아닌 경로 처리 함수 { #non-async-path-operation-functions } `async`가 없는 일반 `def` 함수에서도 동일하게 `yield`를 사용할 수 있습니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:56:39 GMT 2026 - 6.2K bytes - Click Count (0) -
cmd/object-handlers_test.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 163.1K bytes - Click Count (0)