- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 640 for unicode (0.1 sec)
-
src/test/java/jcifs/util/ByteEncodableTest.java
// Test basic encoding byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 }; ByteEncodable encodable = new ByteEncodable(data, 1, 3); byte[] dest = new byte[5]; int encodedLen = encodable.encode(dest, 0); // Verify encoded length assertEquals(3, encodedLen, "Encoded length should be equal to the specified length"); // Verify content
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
class EncodingTests { @Test @DisplayName("Should encode single cipher correctly") void testEncodeSingleCipher() { int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM }; EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers); int bytesWritten = context.encode(buffer, 0); assertEquals(4, bytesWritten);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
cmd/tier-last-day-stats_gen_test.go
v := DailyAllTierStats{} var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodeDailyAllTierStats Msgsize() is inaccurate") } vn := DailyAllTierStats{} err := msgp.Decode(&buf, &vn) if err != nil { t.Error(err) } buf.Reset() msgp.Encode(&buf, &v) err = msgp.NewReader(&buf).Skip() if err != nil { t.Error(err)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
srvsvc.ShareInfo0 shareInfo0 = new srvsvc.ShareInfo0(); shareInfo0.netname = null; shareInfo0.encode(mockNdrBuffer); // Verify the encode operations verify(mockNdrBuffer).align(4); verify(mockNdrBuffer).enc_ndr_referent(null, 1); // Should not encode string if netname is null verify(mockDeferredBuffer, never()).enc_ndr_string(anyString()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
} /** * Ensure encode throws NPE when passed a null buffer. */ @Test @DisplayName("Encode with null buffer throws NullPointerException") public void testEncodeNullBuffer() throws NdrException { NdrHyper hyper = new NdrHyper(5L); assertThrows(NullPointerException.class, () -> hyper.encode(null)); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
// Prepare buffer byte[] buffer = new byte[100]; int startIndex = 10; // Encode int bytesWritten = info.encode(buffer, startIndex); // Verify bytes written (encode returns 40, which includes 4 padding bytes) assertEquals(40, bytesWritten); // Create a new FileBasicInfo and decode to verify encoding
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/main/java/jcifs/util/Encdec.java
private static final int TIME_1970_MILLIS_64LE = 8; /** * */ private Encdec() { } /* * Encode integers */ /** * Encodes a 16-bit unsigned integer in big-endian byte order. * * @param s the short value to encode * @param dst the destination byte array * @param di the starting index in the destination array
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
cmd/data-usage-cache_gen_test.go
v := allTierStats{} var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodeallTierStats Msgsize() is inaccurate") } vn := allTierStats{} err := msgp.Decode(&buf, &vn) if err != nil { t.Error(err) } buf.Reset() msgp.Encode(&buf, &v) err = msgp.NewReader(&buf).Skip() if err != nil { t.Error(err) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 19K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
byte[] buffer = new byte[EXPECTED_SIZE * 3]; // When int offset1 = chunk1.encode(buffer, 0); int offset2 = chunk2.encode(buffer, offset1); int offset3 = chunk3.encode(buffer, offset1 + offset2); // Then assertEquals(EXPECTED_SIZE, offset1); assertEquals(EXPECTED_SIZE, offset2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0)