- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 18 for smallBuffer (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
byte[] smallBuffer = new byte[24]; lock = new Smb2Lock(100L, 200L, 1); int encoded = lock.encode(smallBuffer, 0); assertEquals(24, encoded); assertEquals(100L, SMBUtil.readInt8(smallBuffer, 0)); assertEquals(200L, SMBUtil.readInt8(smallBuffer, 8)); assertEquals(1, SMBUtil.readInt4(smallBuffer, 16)); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/util/EncdecTest.java
void testBufferBounds() { // Given byte[] smallBuffer = new byte[2]; // When/Then assertThrows(IndexOutOfBoundsException.class, () -> { Encdec.enc_uint32le(0x12345678, smallBuffer, 0); }); assertThrows(IndexOutOfBoundsException.class, () -> { Encdec.dec_uint32le(smallBuffer, 0); }); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
void testBoundaryConditions() { byte[] smallBuffer = new byte[10]; // Test with maximum offset int result = response.writeSetupWireFormat(smallBuffer, Integer.MAX_VALUE); assertEquals(0, result); result = response.readSetupWireFormat(smallBuffer, Integer.MAX_VALUE, 0); assertEquals(0, result);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
// Given byte[] smallBuffer = new byte[100]; int bodyStart = 0; int dataLength = 50; int dataOffsetValue = 80; // Data would extend beyond buffer // Write structure SMBUtil.writeInt2(17, smallBuffer, bodyStart); smallBuffer[bodyStart + 2] = (byte) dataOffsetValue; SMBUtil.writeInt4(dataLength, smallBuffer, bodyStart + 4);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 22.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
} @Test @DisplayName("Test invalid buffer size for decoding") public void testInvalidBufferSize() { byte[] smallBuffer = new byte[4]; // Too small assertThrows(SMBProtocolDecodingException.class, () -> { context.decode(smallBuffer, 0, smallBuffer.length); }); } @Test @DisplayName("Test algorithm name resolution") public void testAlgorithmNames() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
int offset = 50; byte[] smallBuffer = createValidNotificationBuffer(fileName, action); byte[] buffer = new byte[smallBuffer.length + offset + 50]; System.arraycopy(smallBuffer, 0, buffer, offset, smallBuffer.length); int bytesRead = notifyInfo.decode(buffer, offset, smallBuffer.length); assertTrue(bytesRead > 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
byte[] compressed = compressionService.compress(testData, CompressionService.COMPRESSION_LZ77); byte[] smallBuffer = new byte[10]; // Too small assertThrows(CIFSException.class, () -> { compressionService.decompress(compressed, 0, compressed.length, smallBuffer, 0, CompressionService.COMPRESSION_LZ77); }); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
void testWithDifferentBufferSizes() { // Test with buffers of different sizes byte[] smallBuffer = new byte[] { 0x01 }; byte[] mediumBuffer = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05 }; SmbNegotiation negotiationDifferentSizes = new SmbNegotiation(mockRequest, mockResponse, smallBuffer, mediumBuffer); assertEquals(1, negotiationDifferentSizes.getRequestRaw().length);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, new int[] { 1, 2 }); byte[] smallBuffer = new byte[100]; // Make buffer large enough byte[] largeBuffer = new byte[1000]; // Act int smallEncodedSize = context.encode(smallBuffer, 0); int largeEncodedSize = context.encode(largeBuffer, 500); // Assert
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) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
// Given trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test"); // Test with minimum size buffer byte[] smallBuffer = new byte[2]; assertEquals(2, trans2GetDfsReferral.writeSetupWireFormat(smallBuffer, 0)); // Test with exact size buffer byte[] exactBuffer = new byte[2]; assertEquals(2, trans2GetDfsReferral.writeSetupWireFormat(exactBuffer, 0));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11K bytes - Click Count (0)