- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 985 for Encode (0.04 sec)
-
cmd/erasure-encode.go
return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers)) } // Encode reads from the reader, erasure-encodes the data and writes to the writers. func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) { writer := &multiWriter{ writers: writers, writeQuorum: quorum,
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java
public void test_encode() { assertNull(permissionHelper.encode(null)); assertNull(permissionHelper.encode("")); assertNull(permissionHelper.encode(" ")); assertNull(permissionHelper.encode("{user}")); assertNull(permissionHelper.encode("{role}")); assertNull(permissionHelper.encode("{group}")); assertNull(permissionHelper.encode("(allow)"));Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/FacetResponseTest.java
} public void test_unicode_base64_encoding() { // Test that unicode strings are properly encoded/decoded String unicodeString = "日本語テスト"; String encoded = BaseEncoding.base64().encode(unicodeString.getBytes(StandardCharsets.UTF_8)); String decoded = new String(BaseEncoding.base64().decode(encoded), StandardCharsets.UTF_8); assertEquals(unicodeString, decoded); }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); int encoded = context.encode(buffer, 0); assertEquals(4 + (count * 2) + 16, encoded); assertEquals(context.size(), encoded); } @Test @DisplayName("Should encode and decode correctly") void testEncodeAndDecode() throws SMBProtocolDecodingException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
byte[] dst = new byte[buffer.size()]; buffer.encode(dst, 0); ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN); assertEquals((short) maxReferralLevel, bb.getShort()); } @Test @DisplayName("Should encode Unicode path correctly") void testEncodeUnicodePath() { String path = "\\\\サーバー\\共有\\パス";Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
} /* * Encode and decode 64 bit integers */ /** * Encodes a 64-bit unsigned integer in big-endian byte order. * * @param l the long value to encode * @param dst the destination byte array * @param di the starting index in the destination arrayRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
info.encode(dstOut); // Encode the info structure // Simulate totalentries pointer (non-null) dstOut.enc_ndr_long(1); // Non-null pointer for totalentries totalentries.encode(dstOut); // Encode the totalentries dstOut.enc_ndr_long(0); // Simulate retval // Use the encoded data for decodingRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
policyHandle.uuid.node); } } @Nested @DisplayName("Unicode String Tests") class UnicodeStringTests { @Test @DisplayName("Should encode unicode string with null buffer correctly") void testUnicodeStringEncodeNullBuffer() throws NdrException { // Given: A unicode string with null bufferRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
when(mockFileInfo.encode(dst, 0)).thenReturn(8); when(mockFileInfo.size()).thenReturn(8); // Test encode int encoded = mockFileInfo.encode(dst, 0); assertEquals(8, encoded); // Test size int size = mockFileInfo.size(); assertEquals(8, size); // Verify interactions verify(mockFileInfo).encode(dst, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
FileRenameInformation2 original = new FileRenameInformation2(fileName, replaceIfExists); // Encode byte[] buffer = new byte[200]; int bytesWritten = original.encode(buffer, 0); // Decode FileRenameInformation2 decoded = new FileRenameInformation2(); int bytesRead = decoded.decode(buffer, 0, bytesWritten); // Verify round trip assertEquals(bytesWritten, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0)