- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 1,097 for Rewrite (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/ioutil/ioutil_test.go
func TestDeadlineWriter(t *testing.T) { w := NewDeadlineWriter(&sleepWriter{timeout: 500 * time.Millisecond}, 450*time.Millisecond) _, err := w.Write([]byte("1")) if err != context.DeadlineExceeded { t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded") } _, err = w.Write([]byte("1")) if err != context.DeadlineExceeded { t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 5.6K bytes - Click Count (0) -
cmd/api-response_test.go
trw.WriteHeader(123) if !trw.headerWritten { t.Fatal("headerWritten was not set by WriteHeader call") } _, err := trw.Write([]byte("hello")) if err != nil { t.Fatalf("Write unexpectedly failed: %v", err) } // Check that WriteHeader and Write were called on the underlying response writer resp := rw.Result() if resp.StatusCode != 123 { t.Fatalf("unexpected status: %v", resp.StatusCode) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 5.8K bytes - Click Count (0) -
android/guava/src/com/google/common/base/SneakyThrows.java
* However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}. * * <p>We sometimes also use {@code sneakyThrow} for testing how our code responds to * sneaky checked exception. * * @return never; this method declares a return type of {@link Error} only so that callers can
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 03 21:52:39 GMT 2025 - 2.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java
SMBUtil.writeInt4(STRUCTURE_SIZE, dst, dstIndex); // DataLength dstIndex += 4; // Write context name System.arraycopy(CONTEXT_NAME_BYTES, 0, dst, dstIndex, 4); dstIndex += 4; // Padding to align data to 8-byte boundary dstIndex += 4; // Write file ID (16 bytes) System.arraycopy(fileId, 0, dst, dstIndex, 16); dstIndex += 16;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseStateTest.java
// Should return true when write caching is enabled assertTrue(DirectoryLeaseState.canCacheModifications(Smb2LeaseState.SMB2_LEASE_WRITE_CACHING)); assertTrue(DirectoryLeaseState.canCacheModifications(Smb2LeaseState.SMB2_LEASE_READ_WRITE)); assertTrue(DirectoryLeaseState.canCacheModifications(DirectoryLeaseState.DIRECTORY_FULL)); // Should return false when write caching is not enabledCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
int readDataAvailable = 100; int numberOfMessages = 2; int messageLength = 50; byte[] testData = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }; // Write values to buffer SMBUtil.writeInt4(namedPipeState, buffer, bufferIndex); SMBUtil.writeInt4(readDataAvailable, buffer, bufferIndex + 4); SMBUtil.writeInt4(numberOfMessages, buffer, bufferIndex + 8);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
// Write a valid string structure String testString = "TEST"; int totalChars = testString.length(); writeLittleEndianInt(dos, totalChars); // totalChars writeLittleEndianInt(dos, 0); // unusedChars writeLittleEndianInt(dos, totalChars); // usedChars // Write the actual characters (as shorts in little-endian)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
build-tools-internal/src/main/resources/forbidden/es-server-signatures.txt
java.lang.System#gc() @defaultMessage Use Channels.* methods to write to channels. Do not write directly. java.nio.channels.WritableByteChannel#write(java.nio.ByteBuffer) java.nio.channels.FileChannel#write(java.nio.ByteBuffer, long) java.nio.channels.GatheringByteChannel#write(java.nio.ByteBuffer[], int, int) java.nio.channels.GatheringByteChannel#write(java.nio.ByteBuffer[]) java.nio.channels.ReadableByteChannel#read(java.nio.ByteBuffer)
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 08 16:53:28 GMT 2021 - 7.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
for (domain in sortedRules) { write(domain).writeByte(NEWLINE) } writeInt(totalExceptionRuleBytes) for (domain in sortedExceptionRules) { write(domain).writeByte(NEWLINE) } } } } private suspend fun writeOutputFile(importResults: ImportResults) = withContext(Dispatchers.IO) { fileSystem.write(outputFile) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Aug 06 05:33:11 GMT 2025 - 6.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/logging/LoggingOutputStream.java
this.consumer = consumer; } public PrintStream printStream() { return new LoggingPrintStream(this); } @Override public void write(int b) throws IOException { super.write(b); if (buf.isEol()) { String line = new String(buf.toByteArray(), 0, buf.size() - LINE_SEP.length); ProjectBuildLogAppender.updateMdc(); consumer.accept(line);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Feb 12 12:31:43 GMT 2025 - 3K bytes - Click Count (0)