- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 1,703 for byte (0.02 sec)
-
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
private int readSize; private boolean async; private int treeId; private long mid, asyncId, sessionId; private byte errorContextCount; private byte[] errorData; private boolean retainPayload; private byte[] rawPayload; private ServerMessageBlock2 next; /** * Constructor for SMB2 message block with configuration. * * @param config the configuration objectRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
// Prepare test data with offset int offset = 10; String expectedFilename = "offsetfile.txt"; byte[] buffer = new byte[200 + offset]; byte[] dataBuffer = createValidBuffer(expectedFilename, "OFFSET~1.TXT", true); System.arraycopy(dataBuffer, 0, buffer, offset, dataBuffer.length); // Decode from offsetRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
String sessionId = "test-session-2"; byte[] salt = preauthService.generatePreauthSalt(); preauthService.initializeSession(sessionId, salt, PreauthIntegrityService.HASH_ALGO_SHA512); byte[] initialHash = preauthService.getCurrentPreauthHash(sessionId); assertNotNull(initialHash); // Update with negotiate message byte[] negotiateMessage = "SMB2 Negotiate Request".getBytes();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
// When byte[] uniBytes = Strings.getUNIBytes(""); byte[] asciiBytes = Strings.getASCIIBytes(""); byte[] oemBytes = Strings.getOEMBytes("", mockConfig); // Then assertNotNull(uniBytes, "UNI bytes should not be null"); assertNotNull(asciiBytes, "ASCII bytes should not be null");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/test/java/jcifs/smb/SmbCopyUtilTest.java
SmbTreeHandleImpl sh = newTreeHandle(false); // force non-SMB2 path to avoid server-side branch SmbTreeHandleImpl dh = newTreeHandle(false); byte[][] buffers = new byte[][] { new byte[8], new byte[8] }; when(src.toString()).thenReturn("smb://src"); when(dest.toString()).thenReturn("smb://dest"); // Act + Assert SmbException ex =Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java
assertEquals(3, dst[35]); // Verify the total bytes written accounts for setup words assertTrue(bytesWritten >= 38 + 6); // Base structure + setup words } @Test @DisplayName("Test writeParameterWordsWireFormat returns correct byte count") void testWriteParameterWordsWireFormatReturnValue() { byte[] dst = new byte[256]; // Set up minimal transaction
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
final byte[] bytes = new byte[4]; readFully(bytes); final byte[] sidBytes = new byte[8 + bytes.length]; sidBytes[0] = 1; sidBytes[1] = (byte) (bytes.length / 4); System.arraycopy(new byte[] { 0, 0, 0, 0, 0, 5 }, 0, sidBytes, 2, 6); System.arraycopy(bytes, 0, sidBytes, 8, bytes.length); return new SID(sidBytes, 0); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5); byte[] checksum = new byte[16]; for (int i = 0; i < checksum.length; i++) { checksum[i] = (byte) i; } baos.write(checksum); byte[] data = baos.toByteArray(); // Create PacSignature PacSignature pacSignature = new PacSignature(data);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java
*/ public class Smb2QueryInfoRequest extends ServerMessageBlock2Request<Smb2QueryInfoResponse> implements RequestWithFileId { private byte infoType; private byte fileInfoClass; private final int outputBufferLength; private int additionalInformation; private int queryFlags; private byte[] fileId; private Encodable inputBuffer; /** * Constructs a SMB2 query info request with the specified configuration
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
assertEquals(expected, actual, "size() must be 8-byte aligned"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5 }) @DisplayName("writeBytesWireFormat writes StructureSize=4 and Reserved=0 at given offset") void writeBytesWireFormat_writesExpectedValuesAtOffset(int offset) { // Arrange Smb2LogoffRequest req = newRequest(); byte[] buf = new byte[offset + 8]; // extra space for safety
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0)