Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 465 for OFFSET (0.17 sec)

  1. android/guava/src/com/google/common/collect/ImmutableList.java

        return new SubList(fromIndex, toIndex - fromIndex);
      }
    
      private final class SubList extends ImmutableList<E> {
        final transient int offset;
        final transient int length;
    
        SubList(int offset, int length) {
          this.offset = offset;
          this.length = length;
        }
    
        @Override
        public int size() {
          return length;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            @DisplayName("Should handle buffer with offset correctly")
            void testReadWithBufferOffset() throws Exception {
                int offset = 10;
                byte[] buffer = new byte[64];
                byte[] fileId = createTestData(16);
                byte oplockLevel = 0x02;
    
                // Fill some random data before offset
                Arrays.fill(buffer, 0, offset, (byte) 0xAB);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. cmd/sftp-server-driver.go

    }
    
    func (w *writerAt) WriteAt(b []byte, offset int64) (n int, err error) {
    	w.m.Lock()
    	defer w.m.Unlock()
    
    	if w.nextOffset == offset {
    		n, err = w.w.Write(b)
    		w.nextOffset += int64(n)
    	} else {
    		if offset > w.nextOffset+ftpMaxWriteOffset {
    			return 0, fmt.Errorf("write offset %d is too far ahead of next offset %d", offset, w.nextOffset)
    		}
    		w.buffer[offset] = make([]byte, len(b))
    		copy(w.buffer[offset], b)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 10 16:35:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

        @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
    
            // Act
            int written = req.writeBytesWireFormat(buf, offset);
    
            // Assert: should write exactly 4 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        void testSignWithValidParameters() {
            // Arrange
            int offset = 0;
            int length = testData.length;
    
            // Act
            signingDigest.sign(testData, offset, length, request, response);
    
            // Assert
            verify(signingDigest, times(1)).sign(testData, offset, length, request, response);
        }
    
        @Test
        @DisplayName("Test sign method with different offsets")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            byte[] buffer = new byte[512];
            int offset = 0;
    
            // Set header start position for the response
            setHeaderStart(response, 64);
    
            // Write structure header (9 bytes)
            SMBUtil.writeInt2(9, buffer, offset); // Structure size
            SMBUtil.writeInt2(80 - 64, buffer, offset + 2); // Buffer offset (relative to header)
            SMBUtil.writeInt4(50, buffer, offset + 4); // Total length of notification data
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/ServerResponseValidator.java

            }
        }
    
        /**
         * Validate offset and length for file operations
         *
         * @param offset file offset
         * @param length operation length
         * @param fileSize total file size
         * @throws SmbException if parameters are invalid
         */
        public void validateFileOperation(long offset, long length, long fileSize) throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

        public int encode(byte[] buffer, int offset) {
            int start = offset;
    
            // Write context header
            SMBUtil.writeInt4(0, buffer, offset); // Next (offset to next context, 0 for last)
            offset += 4;
    
            SMBUtil.writeInt2(16, buffer, offset); // NameOffset (from start of context)
            offset += 2;
    
            SMBUtil.writeInt2(4, buffer, offset); // NameLength
            offset += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    						Name:     "gnu-sparse",
    						Size:     6e10,
    						SparseHoles: []sparseEntry{
    							{Offset: 0e10, Length: 1e10 - 100},
    							{Offset: 1e10, Length: 1e10 - 100},
    							{Offset: 2e10, Length: 1e10 - 100},
    							{Offset: 3e10, Length: 1e10 - 100},
    							{Offset: 4e10, Length: 1e10 - 100},
    							{Offset: 5e10, Length: 1e10 - 100},
    						},
    					}, nil},
    					testReadFrom{fileOps{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

            assertEquals(SmbComTransaction.TRANS_CALL_NAMED_PIPE, dst[offset]);
            assertEquals((byte) 0x00, dst[offset + 1]);
            assertEquals((byte) 0x00, dst[offset + 2]);
            assertEquals((byte) 0x00, dst[offset + 3]);
        }
    
        @Test
        @DisplayName("Test readSetupWireFormat returns 0")
        void testReadSetupWireFormat() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top