- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 985 for Encode (0.04 sec)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
void testPad8() { testMessage.encode(new byte[1024], 0); // After header is written, padding depends on position int headerStart = testMessage.getHeaderStart(); assertEquals(0, headerStart); // Should start at 0 } } @Nested @DisplayName("Encode/Decode Tests") class EncodeDecodeTests { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
final int i = index - 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) { buf[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.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/PunycodeTest.kt
} private fun testEncodeDecode( unicode: String, punycode: String, ) { assertEquals(unicode, Punycode.decode(punycode)) assertEquals(punycode, Punycode.encode(unicode)) } private fun testDecodeOnly( unicode: String, punycode: String, ) { assertEquals(unicode, Punycode.decode(punycode)) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/background-newdisks-heal-ops_gen_test.go
v := healingTracker{} var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodehealingTracker Msgsize() is inaccurate") } vn := healingTracker{} 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 Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
src/main/java/jcifs/Encodable.java
*/ int encode(byte[] dst, int dstIndex); /** * Returns the size in bytes that this object will occupy when encoded. * * @return the encoded size */ int size();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
// Decode smbInfoAllocation.decode(buffer, 0, buffer.length); // Verify - with sectPerAlloc = 1, capacity = alloc * bytesPerSect assertEquals(alloc * bytesPerSect, smbInfoAllocation.getCapacity()); assertEquals(free * bytesPerSect, smbInfoAllocation.getFree()); } @Test @DisplayName("Test decode with large bytes per sector")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
// Should encode all 15 characters assertTrue(length >= 34); assertEquals(0x20, dst[0]); } @Test void readWireFormat_withTrailingSpaces_shouldTrimCorrectly() { // Prepare encoded data for "TEST " (with trailing spaces) byte[] src = new byte[100]; src[0] = 0x20; // Encode "TEST" correctlyRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/rpc.java
public byte clock_seq_hi_and_reserved; /** The low field of the clock sequence */ public byte clock_seq_low; /** The spatially unique node identifier */ public byte[] node; @Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_long(this.time_low); _dst.enc_ndr_short(this.time_mid);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
// Should write FileInformation data + 6 bytes padding assertEquals(46, written); // 40 + 6 // Verify encode was called verify(mockFileInfo).encode(buffer, 0); // Check that 6 bytes of padding are zeros for (int i = 40; i < 46; i++) { assertEquals(0, buffer[i]); } } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0)