- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 1,217 for differ (0.04 sec)
-
src/main/java/org/codelibs/core/nio/ChannelUtil.java
try { return channel.read(buffer); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Reads the contents of the file channel into a byte buffer. * * @param channel * The file channel. Must not be {@literal null}. * @param buffer
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
void testReadSetupWireFormat() { netShareEnum = new NetShareEnum(realConfig); byte[] buffer = new byte[100]; int result = netShareEnum.readSetupWireFormat(buffer, 0, 100); assertEquals(0, result); // Test with different parameters result = netShareEnum.readSetupWireFormat(buffer, 10, 50); assertEquals(0, result); // Test with zero length
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
cmd/bucket-replication-utils_gen_test.go
v := BucketReplicationResyncStatus{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len())) en := msgp.NewWriter(msgp.Nowhere) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.EncodeMsg(en) } en.Flush() } func BenchmarkDecodeBucketReplicationResyncStatus(b *testing.B) { v := BucketReplicationResyncStatus{} var buf bytes.Buffer msgp.Encode(&buf, &v)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Aug 22 23:53:06 UTC 2022 - 23K bytes - Viewed (0) -
src/bufio/bufio_test.go
t.Error("NewReaderSize did not detect underlying Reader") } // Does it wrap if existing buffer is too small? b2 := NewReaderSize(b, 2*BufSize) if b2 == b { t.Error("NewReaderSize did not enlarge buffer") } } func TestNewWriterSizeIdempotent(t *testing.T) { const BufSize = 1000 b := NewWriterSize(new(bytes.Buffer), BufSize) // Does it recognize itself? b1 := NewWriterSize(b, BufSize) if b1 != b {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 01:08:54 UTC 2025 - 51.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
* * <ul> * <li>happy‑path behaviour</li> * <li>boundary arguments (e.g., negative indices, large values)</li> * <li>string representation containing the class name</li> * <li>null buffer handling</li> * </ul> */ final class TransWaitNamedPipeResponseTest { /** * Verify that the default constructor creates an instance. */ @Test void constructorInitialisesInstance() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
byte[] buffer = new byte[4096]; // When req.encode(buffer, 0); // Then byte[] pathBytes = longPath.getBytes(StandardCharsets.UTF_16LE); assertEquals(pathBytes.length, SMBUtil.readInt2(buffer, Smb2Constants.SMB2_HEADER_LENGTH + 6)); } @Test @DisplayName("Should throw exception when buffer too small for path")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
int readHeaderWireFormat(final byte[] buffer, final int bufferIndex) { command = buffer[bufferIndex + CMD_OFFSET]; errorCode = readInt4(buffer, bufferIndex + ERROR_CODE_OFFSET); flags = buffer[bufferIndex + FLAGS_OFFSET]; flags2 = readInt2(buffer, bufferIndex + FLAGS_OFFSET + 1); tid = readInt2(buffer, bufferIndex + TID_OFFSET); pid = readInt2(buffer, bufferIndex + TID_OFFSET + 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComWriteAndXResponse.java
return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { count = readInt2(buffer, bufferIndex) & 0xFFFFL; return 8; } @Override int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
request.setCloseFlags(testFlags); byte[] buffer = new byte[256]; int written = request.writeBytesWireFormat(buffer, 0); assertEquals(24, written); assertEquals(24, SMBUtil.readInt2(buffer, 0)); assertEquals(testFlags, SMBUtil.readInt2(buffer, 2)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/JobProcess.java
* Uses the default buffer size and no output callback. * * @param process the system process to wrap */ public JobProcess(final Process process) { this(process, InputStreamThread.MAX_BUFFER_SIZE, null); } /** * Constructs a new JobProcess with the specified process, buffer size, and output callback. *
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2.4K bytes - Viewed (0)