- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for HEADER_LENGTH (0.08 sec)
-
src/main/java/jcifs/netbios/SessionServicePacket.java
this.length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH); writeHeaderWireFormat(dst, dstIndex); return HEADER_LENGTH + this.length; } int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException { readHeaderWireFormat(in, buffer, bufferIndex); return HEADER_LENGTH + readTrailerWireFormat(in, buffer, bufferIndex); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionServicePacket.java
length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH); writeHeaderWireFormat(dst, dstIndex); return HEADER_LENGTH + length; } int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException { readHeaderWireFormat(in, buffer, bufferIndex); return HEADER_LENGTH + readTrailerWireFormat(in, buffer, bufferIndex); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
assertEquals(mockConfig, packet.config); } @Test void testWriteHeaderWireFormat() { byte[] dst = new byte[NameServicePacket.HEADER_LENGTH]; packet.nameTrnId = 0x1234; packet.isResponse = true; packet.opCode = NameServicePacket.QUERY; packet.isAuthAnswer = true; packet.isTruncated = true;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServicePacket.java
static final int NBSTAT = 0x0021; static final int IN = 0x0001; static final int A = 0x0001; static final int NS = 0x0002; static final int NULL = 0x000a; static final int HEADER_LENGTH = 12; // header field offsets static final int OPCODE_OFFSET = 2; static final int QUESTION_OFFSET = 4; static final int ANSWER_OFFSET = 6; static final int AUTHORITY_OFFSET = 8;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServicePacket.java
static final int NBSTAT = 0x0021; static final int IN = 0x0001; static final int A = 0x0001; static final int NS = 0x0002; static final int NULL = 0x000a; static final int HEADER_LENGTH = 12; // header field offsets static final int OPCODE_OFFSET = 2; static final int QUESTION_OFFSET = 4; static final int ANSWER_OFFSET = 6; static final int AUTHORITY_OFFSET = 8;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
byte[] dst = new byte[200]; // Act int result = nodeStatusRequest.writeWireFormat(dst, 0); // Assert assertTrue(result >= NameServicePacket.HEADER_LENGTH); } @Test void readWireFormat_shouldDelegateToParent() { // Arrange nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName); byte[] src = new byte[200];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
synchronized (BUF) { System.arraycopy(sbuf, 0, BUF, 0, 4 + HEADER_LENGTH); final int size = Encdec.dec_uint16be(BUF, 2) & 0xFFFF; if (size < HEADER_LENGTH + 1 || 4 + size > rcv_buf_size) { throw new IOException("Invalid payload size: " + size); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
dstIndex += TID_OFFSET; writeInt2(tid, dst, dstIndex); writeInt2(pid, dst, dstIndex + 2); writeInt2(uid, dst, dstIndex + 4); writeInt2(mid, dst, dstIndex + 6); return HEADER_LENGTH; } int readHeaderWireFormat(final byte[] buffer, final int bufferIndex) { command = buffer[bufferIndex + CMD_OFFSET]; errorCode = readInt4(buffer, bufferIndex + ERROR_CODE_OFFSET);
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/SmbConstants.java
int FLAGS_OFFSET = 9; /** Signature offset in SMB header */ int SIGNATURE_OFFSET = 14; /** TID offset in SMB header */ int TID_OFFSET = 24; /** SMB header length */ int HEADER_LENGTH = 32; /** Milliseconds between 1970 and 1601 */ long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L; /** Default timezone */ TimeZone TZ = TimeZone.getDefault();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
assertEquals(0x85, SessionServicePacket.SESSION_KEEP_ALIVE); assertEquals(0x0001FFFF, SessionServicePacket.MAX_MESSAGE_SIZE); assertEquals(4, SessionServicePacket.HEADER_LENGTH); } @ParameterizedTest @MethodSource("provideRoundTripTestData") @DisplayName("Write and read operations should be symmetric") void testWriteReadSymmetry(int value, boolean isInt2) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0)