- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 799 for decode (0.09 sec)
-
cmd/erasure-decode.go
} // If we cannot decode, just return read quorum error. return nil, fmt.Errorf("%w (offline-disks=%d/%d)", errErasureReadQuorum, disksNotFound, len(p.readers)) } // Decode reads from readers, reconstructs data if needed and writes the data to the writer. // A set of preferred drives can be supplied. In that case they will be used and the data reconstructed.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
int offset = 5; original.encode(buffer, offset); // Decode from offset FileEndOfFileInformation decoded = new FileEndOfFileInformation(); int decodedBytes = decoded.decode(buffer, offset, 8); assertEquals(8, decodedBytes); // Verify the values match assertEquals(original.toString(), decoded.toString()); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
NdrHyper decoded = new NdrHyper(0); decoded.decode(buf); assertEquals(val, decoded.value, "Decoded value should match encoded value for " + Long.toHexString(val)); } /** * Ensure encode throws NPE when passed a null buffer. */ @Test @DisplayName("Encode with null buffer throws NullPointerException") public void testEncodeNullBuffer() throws NdrException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
EncryptionNegotiateContext decodedContext = new EncryptionNegotiateContext(); int decoded = decodedContext.decode(buffer, 0, encoded); assertEquals(encoded, decoded); assertArrayEquals(originalCiphers, decodedContext.getCiphers()); } @Test @DisplayName("Should encode and decode correctly with null ciphers")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
FileBasicInfo decoded = new FileBasicInfo(); int decodedBytes = decoded.decode(buffer, 0, 36); // Verify encoding/decoding assertEquals(40, encodedBytes); // encode writes 40 bytes (includes padding) assertEquals(36, decodedBytes); // decode reads 36 bytes (no padding) assertEquals(original.getCreateTime(), decoded.getCreateTime());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
int decoded = resp.decode(buf, headerStart); assertTrue(decoded > 0, "Decode should return positive length"); assertEquals(NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, resp.getStatus()); assertArrayEquals(blob, resp.getBlob(), "Security blob should match"); assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
SMBUtil.writeInt8(expectedValue, buffer, offset); // Decode from offset int bytesRead = fileInfo.decode(buffer, offset, buffer.length - offset); assertEquals(8, bytesRead); assertTrue(fileInfo.toString().contains("endOfFile=" + expectedValue)); } @Test @DisplayName("Test encode and decode round trip")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java
* @param len the length of data to decode * @throws IOException if an I/O error occurs during decoding */ public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException { this.decode(buffer, bufferIndex, len); } /** * Decodes a security descriptor from a byte buffer. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Base64Util.java
* </p> * * @param inData * The data to decode * @return The decoded data, or null if the input is null or empty */ public static byte[] decode(final String inData) { if (StringUtil.isEmpty(inData)) { return null; } return Base64.getDecoder().decode(inData); }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
} /** * Test decode with only EOL */ @Test @DisplayName("Decode empty list with only EOL") void testDecodeEmptyList() throws CIFSException { byte[] eolData = createEolData(); List<AvPair> pairs = AvPairs.decode(eolData); assertNotNull(pairs, "Decoded pairs should not be null");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0)