Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 30 for headerStart (0.36 seconds)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            response = new Smb2QueryDirectoryResponse(mockConfig, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
    
            byte[] buffer = new byte[1024];
            int bufferIndex = 200;
            int headerStart = 50;
    
            // Set structure size to 9
            SMBUtil.writeInt2(9, buffer, bufferIndex);
            // Set buffer offset (relative to header start)
            SMBUtil.writeInt2(300, buffer, bufferIndex + 2);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                System.arraycopy(this.txn_buf, this.bufParameterOffset, dst, this.headerStart + this.parameterOffset, this.parameterCount);
                end = Math.max(end, this.headerStart + this.parameterOffset + this.parameterCount + this.pad2);
            }
    
            if (this.dataCount > 0) {
                System.arraycopy(this.txn_buf, this.bufDataOffset, dst, this.headerStart + this.dataOffset, this.dataCount);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            if (this.digest != null) {
                this.digest.sign(dst, this.headerStart, this.length, this, this.response);
            }
    
            return this.length;
        }
    
        @Override
        public int decode(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = this.headerStart = bufferIndex;
    
            bufferIndex += readHeaderWireFormat(buffer, bufferIndex);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Verify negotiate context offset is set
            int contextOffset = SMBUtil.readInt4(buffer, 28);
            assertTrue(contextOffset > 0);
    
            // Skip detailed context verification since we can't access headerStart
            // Just verify that contexts were written
            assertTrue(bytesWritten > 60); // Should be larger than basic negotiate request
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            void testPad8() {
                testMessage.encode(new byte[1024], 0);
                // After header is written, padding depends on position
                int headerStart = testMessage.getHeaderStart();
                assertEquals(0, headerStart); // Should start at 0
            }
        }
    
        @Nested
        @DisplayName("Encode/Decode Tests")
        class EncodeDecodeTests {
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                testBlock.setUseUnicode(true);
                byte[] buffer = new byte[100];
                String testString = "Test";
    
                // Test odd Unicode alignment - headerStart affects alignment
                int bytesWritten = testBlock.writeString(testString, buffer, 2);
    
                // When even alignment (offset 2), Unicode string starts immediately
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            } else {
    
                /*
                 * Set bufferIndex according to andxOffset
                 */
    
                bufferIndex = this.headerStart + this.andxOffset;
    
                this.andx.headerStart = this.headerStart;
                this.andx.setCommand(this.andxCommand);
                this.andx.setErrorCode(getErrorCode());
                this.andx.setFlags(getFlags());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

        @Test
        @DisplayName("readAndXWireFormat applies Snap server workaround (offset 0)")
        void testReadAndXWireFormatSnapWorkaround() {
            DummyAndXBlock block = new DummyAndXBlock();
            block.headerStart = 0;
    
            byte[] buf = new byte[64];
            buf[0] = 4; // wordCount
            buf[1] = 0x42; // andxCommand
            // andxOffset = 0 triggers workaround -> treat as no andx
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java

        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            this.dataOffset = dstIndex - this.headerStart + 26; // 26 = off from here to pad
    
            this.pad = (this.dataOffset - this.headerStart) % 4;
            this.pad = this.pad == 0 ? 0 : 4 - this.pad;
            this.dataOffset += this.pad;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  10. src/archive/tar/format.go

    func (h *headerGNU) realSize() []byte    { return h[483:][:12] }
    
    type headerSTAR [blockSize]byte
    
    func (h *headerSTAR) v7() *headerV7      { return (*headerV7)(h) }
    func (h *headerSTAR) magic() []byte      { return h[257:][:6] }
    func (h *headerSTAR) version() []byte    { return h[263:][:2] }
    func (h *headerSTAR) userName() []byte   { return h[265:][:32] }
    func (h *headerSTAR) groupName() []byte  { return h[297:][:32] }
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Click Count (0)
Back to Top