Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 517 for offsets (0.03 sec)

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

        return ImmutableList.of(element);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        dst[offset] = element;
        return offset + 1;
      }
    
      @Override
      public final int hashCode() {
        return element.hashCode();
      }
    
      @Override
      public String toString() {
        return '[' + element.toString() + ']';
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    	closed      bool
    	compressors map[uint16]Compressor
    	comment     string
    
    	// testHookCloseSizeOffset if non-nil is called with the size
    	// of offset of the central directory at Close.
    	testHookCloseSizeOffset func(size, offset uint64)
    }
    
    type header struct {
    	*FileHeader
    	offset uint64
    	raw    bool
    }
    
    // NewWriter returns a new [Writer] writing a zip file to w.
    func NewWriter(w io.Writer) *Writer {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            SMBUtil.writeInt2(shareType, buffer, bufferIndex);
            bufferIndex += 2;
    
            // Write remark offset (4 bytes)
            int remarkOffset = shareNameSize + typeSize + offsetSize;
            SMBUtil.writeInt4(remarkOffset, buffer, bufferIndex);
            bufferIndex += 4;
    
            // Write remark at the calculated offset
            byte[] remarkBytes = remark.getBytes(StandardCharsets.US_ASCII);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            SMBUtil.writeInt2(0x8004, buffer, 22); // Control flags
            SMBUtil.writeInt4(0, buffer, 24); // Owner offset
            SMBUtil.writeInt4(0, buffer, 28); // Group offset
            SMBUtil.writeInt4(0, buffer, 32); // SACL offset
            SMBUtil.writeInt4(0, buffer, 36); // DACL offset
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertNotNull(response.getInfo());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. docs/smb3-features/03-multi-channel-design.md

        private void encodeSockaddr(byte[] buffer, int offset) {
            if (ipv6) {
                // IPv6 sockaddr_in6 structure
                writeInt2(buffer, offset, 23);  // AF_INET6
                writeInt2(buffer, offset + 2, 445);  // Port
                writeInt4(buffer, offset + 4, 0);  // Flow info
                System.arraycopy(address.getAddress(), 0, buffer, offset + 8, 16);
                writeInt4(buffer, offset + 24, 0);  // Scope ID
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

        @DisplayName("writeAndXWireFormat without andx writes 0xFF and sentinel offset")
        void testWriteAndXWireFormatWithoutAndx() {
            DummyAndXBlock block = new DummyAndXBlock();
            byte[] buf = new byte[128];
            int n = block.writeAndXWireFormat(buf, 0);
    
            assertTrue(n > 0);
            // Common AndX header: command at +1, reserved at +2, offset at +3/+4
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

                assertEquals(expected[i], dst[offset + i], () -> "byte index " + idx);
            }
            // The region before offset and after the payload must remain untouched.
            for (int i = 0; i < offset; i++) {
                final int idx = i;
                assertEquals(0, dst[i], () -> "pre-offset byte " + idx + " modified");
            }
            for (int i = offset + 8; i < dst.length; i++) {
                final int idx = i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top