- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,011 for buffers (0.03 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
ByteBuffer buffer = ByteBuffer.allocate(34); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putShort((short) 0); // dialectIndex buffer.put((byte) 0x0F); // securityMode (user, encrypted, sigs enabled, sigs required) buffer.putShort((short) 50); // maxMpxCount buffer.putShort((short) 10); // maxNumberVcs buffer.putInt(8192); // maxBufferSize
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
Smb2LogoffResponse resp = newResponse(); byte[] buffer = new byte[8]; byte[] original = buffer.clone(); // Act int written = resp.writeBytesWireFormat(buffer, index); // Assert assertEquals(0, written, "Should report 0 bytes written"); assertArrayEquals(original, buffer, "Buffer must remain unchanged"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
byte[] buffer = new byte[100]; int offset = 10; // When int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten, "Should write 4 bytes"); // Check that structure size (4) is written as 2-byte little-endian assertEquals(4, buffer[offset] | (buffer[offset + 1] << 8), "Structure size should be 4");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java
@Override int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) { length = readInt4(buffer, bufferIndex); return 4; } @Override int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java
} @Override int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { if (wordCount == 0) { return 0; } fileAttributes = readInt2(buffer, bufferIndex); bufferIndex += 2; lastWriteTime = readUTime(buffer, bufferIndex); bufferIndex += 4; fileSize = readInt4(buffer, bufferIndex); return 20; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileBasicInfo.java
@Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; this.createTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8; this.lastAccessTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8; this.lastWriteTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
*/ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; // Read total allocation units. this.alloc = SMBUtil.readInt8(buffer, bufferIndex); bufferIndex += 8; // read caller available allocation units this.free = SMBUtil.readInt8(buffer, bufferIndex); bufferIndex += 8;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
T pivotValue = uncheckedCastNullableTToT(buffer[pivotIndex]); buffer[pivotIndex] = buffer[right]; int pivotNewIndex = left; for (int i = left; i < right; i++) { if (comparator.compare(uncheckedCastNullableTToT(buffer[i]), pivotValue) < 0) { swap(pivotNewIndex, i); pivotNewIndex++; } } buffer[right] = buffer[pivotNewIndex]; buffer[pivotNewIndex] = pivotValue;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java
bufferIndex += 2; parameterOffset = readInt2(buffer, bufferIndex); bufferIndex += 2; parameterDisplacement = readInt2(buffer, bufferIndex); bufferIndex += 2; dataCount = readInt2(buffer, bufferIndex); bufferIndex += 2; dataOffset = readInt2(buffer, bufferIndex); bufferIndex += 2; dataDisplacement = readInt2(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
byte[] buffer = new byte[50]; int used = nullPathCmd.writeBytesWireFormat(buffer, 0); // Should write command byte + null terminator only assertEquals(2, used, "Null path should result in command byte + NUL"); assertEquals(0x04, buffer[0] & 0xFF, "First byte must still be 0x04"); assertEquals(0, buffer[1], "Second byte must be null terminator"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0)