Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 365 for _offset (0.03 sec)

  1. android/guava/src/com/google/common/hash/HashCode.java

        writeBytesToImpl(dest, offset, maxLength);
        return maxLength;
      }
    
      abstract void writeBytesToImpl(byte[] dest, int offset, int maxLength);
    
      /**
       * Returns a mutable view of the underlying bytes for the given {@code HashCode} if it is a
       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

            @DisplayName("Should encode with offset correctly")
            void testEncodeWithOffset() {
                String path = "\\\\test";
                int maxReferralLevel = 5;
                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                int offset = 10;
                byte[] dst = new byte[offset + buffer.size()];
                int bytesEncoded = buffer.encode(dst, offset);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComSeekResponse.java

        private long offset;
    
        /**
         * Constructs a seek response.
         *
         * @param config the configuration
         */
        public SmbComSeekResponse(final Configuration config) {
            super(config);
        }
    
        /**
         * Gets the current file offset after the seek operation.
         *
         * @return the offset
         */
        public long getOffset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

        @Test
        @DisplayName("Test encode with offset")
        void testEncodeWithOffset() {
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            int offset = 100;
            byte[] buffer = new byte[offset + request.size()];
            int encodedLength = request.encode(buffer, offset);
    
            // Verify encoded length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/DiscreteDomain.java

      /** Private constructor for built-in DiscreteDomains supporting fast offset. */
      private DiscreteDomain(boolean supportsFastOffset) {
        this.supportsFastOffset = supportsFastOffset;
      }
    
      /**
       * Returns, conceptually, "origin + distance", or equivalently, the result of calling {@link
       * #next} on {@code origin} {@code distance} times.
       */
      C offset(C origin, long distance) {
        C current = origin;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                // Reflectively inspect the private 'offset' field to assert it used the advanced fp
                Field offField = Smb2ReadRequest.class.getDeclaredField("offset");
                offField.setAccessible(true);
                long offVal = offField.getLong(req);
                assertEquals(2L, offVal, "Request offset should match skipped bytes");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/ByteEncodableTest.java

            assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset");
        }
    
        @Test
        void testEncodeWithOffset() {
            // Test encoding with a destination offset
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
            ByteEncodable encodable = new ByteEncodable(data, 0, 3);
            byte[] dest = new byte[5]; // {0,0,0,0,0}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        private final transient @Nullable Object[] alternatingKeysAndValues;
        private final transient int offset;
        private final transient int size;
    
        KeysOrValuesAsList(@Nullable Object[] alternatingKeysAndValues, int offset, int size) {
          this.alternatingKeysAndValues = alternatingKeysAndValues;
          this.offset = offset;
          this.size = size;
        }
    
        @Override
        public Object get(int index) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

        }
    
        @Test
        @DisplayName("Test decode with buffer offset")
        void testDecodeWithBufferOffset() throws SMBProtocolDecodingException {
            // 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            byte[] buffer = new byte[100];
            int offset = 10;
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(4, bytesWritten, "Should write 4 bytes");
            // Check that structure size (4) is written as 2-byte little-endian
            assertEquals(4, buffer[offset] | (buffer[offset + 1] << 8), "Structure size should be 4");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top