- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 1,371 for Rewrite (0.04 sec)
-
src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java
DataOutputStream dos = new DataOutputStream(baos); // Write minimal PAC header dos.writeInt(Integer.reverseBytes(3)); // 3 buffers dos.writeInt(Integer.reverseBytes(PacConstants.PAC_VERSION)); // Write buffer entries dos.writeInt(Integer.reverseBytes(PacConstants.LOGON_INFO));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
throw e; } } /** * Performs RDMA write operation. * * @param buffer the buffer to write from * @param remoteAddress remote memory address * @param remoteKey remote access key * @param length number of bytes to write * @return number of bytes written * @throws IOException if operation fails */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
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")
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 5.6K bytes - Viewed (0) -
internal/logger/logrotate.go
f *os.File pw *xioutil.PipeWriter pr *xioutil.PipeReader } // Write writes p into the current file, rotating if necessary. // Write is non-blocking, if the writer's queue is not full. // Write is blocking otherwise. func (w *Writer) Write(p []byte) (n int, err error) { return w.pw.Write(p) } // Close closes the writer. // Any accepted writes will be flushed. Any new writes will be rejected.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 5.8K bytes - Viewed (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);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (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)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
internal/lsync/lrwmutex.go
func NewLRWMutex() *LRWMutex { return &LRWMutex{} } // Lock holds a write lock on lm. // // If the lock is already in use, the calling go routine // blocks until the mutex is available. func (lm *LRWMutex) Lock() { const isWriteLock = true lm.lockLoop(context.Background(), lm.id, lm.source, math.MaxInt64, isWriteLock) } // GetLock tries to get a write lock on lm before the timeout occurs.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.8K bytes - Viewed (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 enabledRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 3.9K bytes - Viewed (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;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3K bytes - Viewed (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
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0)