Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 632 for encodeId (0.03 sec)

  1. cmd/erasure_test.go

    			t.Fatalf("Test %d: failed to create erasure: %v", i, err)
    		}
    		encoded, err := erasure.EncodeData(t.Context(), buffer)
    		if err != nil {
    			t.Fatalf("Test %d: failed to encode data: %v", i, err)
    		}
    
    		for j := range encoded[:test.missingData] {
    			encoded[j] = nil
    		}
    		for j := test.dataBlocks; j < test.dataBlocks+test.missingParity; j++ {
    			encoded[j] = nil
    		}
    
    		if test.reconstructParity {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ByteEncodable.java

         */
        @Override
        public int size() {
            return this.len;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, final int dstIndex) {
            System.arraycopy(this.bytes, this.off, dst, dstIndex, this.len);
            return this.len;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            final int i = this.index - this.start;
            final int n = (i + m & ~m) - i;
            advance(n);
            return n;
        }
    
        /**
         * Encodes a small integer (1 byte) in NDR format.
         *
         * @param s the small integer value to encode
         */
        public void enc_ndr_small(final int s) {
            this.buf[this.index] = (byte) (s & 0xFF);
            advance(1);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

            // Note: No IPv4 preference bonus to keep base score equal to link speed
    
            return score;
        }
    
        /**
         * Encode this interface info for FSCTL_QUERY_NETWORK_INTERFACE_INFO response
         *
         * @return encoded bytes
         */
        public byte[] encode() {
            // NETWORK_INTERFACE_INFO structure per MS-SMB2 2.2.32.5.1
            // Total size: 152 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/rpcTest.java

                // But only test the non-deferred parts to avoid field mocking issues
    
                // When: Trying to encode (may throw exception due to deferred buffer)
                // Then: Should at least call the basic encoding methods before hitting deferred
                assertThrows(Exception.class, () -> {
                    unicodeString.encode(mockNdrBuffer);
                }, "Should encounter issue with deferred buffer access");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            FileRenameInformation2 info = new FileRenameInformation2(unicodeFileName, false);
    
            byte[] buffer = new byte[200];
            int bytesWritten = info.encode(buffer, 0);
    
            // Verify the encoded data
            int nameLength = SMBUtil.readInt4(buffer, 16);
            byte[] nameBytes = new byte[nameLength];
            System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            // Now test encode
            byte[] destinationBuffer = new byte[30]; // Extra space
            int dstIndex = 3; // Start at offset 3
            int bytesEncoded = fileStandardInfo.encode(destinationBuffer, dstIndex);
    
            // Verify
            assertEquals(22, bytesEncoded);
    
            // Verify encoded data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            domainInfo.sid.sub_authority_count = 2;
            domainInfo.sid.sub_authority = new int[] { 21, 12345 };
    
            // Encode to buffer
            byte[] buffer = new byte[1024];
            NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0);
            domainInfo.encode(encodeBuffer);
    
            // Decode from buffer
            NdrBuffer decodeBuffer = new NdrBuffer(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

        /**
         * When lastWriteTime is zero the encoded unsigned time must be all 1s.
         */
        @Test
        @DisplayName("edge: writeParameterWordsWireFormat with lastWriteTime=0")
        void testWriteParameterWordsZeroUTime() {
            SmbComClose close = new SmbComClose(42, 0L);
            byte[] buffer = new byte[6];
            close.writeParameterWordsWireFormat(buffer, 0);
            // first two bytes encode fid 42
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/xml/DomUtil.java

            } catch (final UnsupportedEncodingException ex) {
                throw new IORuntimeException(ex);
            }
        }
    
        /**
         * Encodes the value of an attribute.
         *
         * @param s
         *            The attribute value.
         * @return The encoded attribute value.
         */
        public static String encodeAttrQuot(final String s) {
            if (s == null) {
                return null;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top