- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 696 for encodes (0.12 sec)
-
cmd/background-newdisks-heal-ops_gen_test.go
v := healingTracker{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len())) en := msgp.NewWriter(msgp.Nowhere) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.EncodeMsg(en) } en.Flush() } func BenchmarkDecodehealingTracker(b *testing.B) { v := healingTracker{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len()))
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/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
assertEquals(1, SMBUtil.readInt2(buffer, 8)); assertEquals(1, SMBUtil.readInt2(buffer, 10)); } /** * Test that a large file lock (bit 0x10 set) is encoded and decoded correctly. */ @ParameterizedTest @ValueSource(ints = { 0x10, 0x11 }) void largeFileFlagSet_and_decoded_according_to_type(int type) throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
transformHeader.setFlags(0x0001); transformHeader.setSessionId(testSessionId); byte[] buffer = new byte[52]; // When int encoded = transformHeader.encode(buffer, 0); // Then assertEquals(52, encoded); // Verify protocol ID (first 4 bytes) - 0xFD534D42 in little-endian assertEquals((byte) 0x42, buffer[0]); assertEquals((byte) 0x4D, buffer[1]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
assertArrayEquals(rawBytes, avTargetName.getRaw(), "Raw bytes should match the input"); } /** * Test constructor with a target name string. * Verifies that the string is correctly encoded to UTF-16LE bytes and stored. */ @Test void testConstructorWithString() { String targetName = "AnotherTargetName"; AvTargetName avTargetName = new AvTargetName(targetName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/PunycodeTest.kt
* overflow and return null. */ @Test fun overflowEncodingOversizedLabel() { val a1000 = "a".repeat(1000) val a1000MaxCodePoint = a1000 + "\udbff\udfff" testEncodeDecode( a1000MaxCodePoint, "xn--$a1000-nc89312g", ) assertNull( Punycode.encode(a1000MaxCodePoint.repeat(2)), ) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
// Test encoding/decoding byte[] encoded = nic.encode(); assertNotNull(encoded); assertEquals(Smb2ChannelCapabilities.NETWORK_INTERFACE_INFO_SIZE, encoded.length); NetworkInterfaceInfo decoded = NetworkInterfaceInfo.decode(encoded, 0); assertEquals(nic.getInterfaceIndex(), decoded.getInterfaceIndex());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb; import org.bouncycastle.util.encoders.Hex; /** * Authenticator directly specifing the user's NT hash * * @author mbechler * */ public class NtlmNtHashAuthenticator extends NtlmPasswordAuthenticator {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcHandle.java
this.securityProvider.unwrap(fbuf); } } /** * Encode a DCE/RPC message for transmission * * @param msg * the message to encode * @param out * the output buffer for the encoded message * @return the NdrBuffer containing the encoded message * @throws NdrException * if there is an error encoding the message
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java
/** * Create SMB Direct Negotiate Request */ public SmbDirectNegotiateRequest() { } /** * Encode to byte array * * @return encoded message */ public byte[] encode() { byte[] data = new byte[32]; int idx = 0; SMBUtil.writeInt2(minVersion, data, idx); idx += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 5.4K bytes - Viewed (0) -
src/archive/tar/common.go
// The value returned is the logical OR of multiple possible formats. // If the value is FormatUnknown, then the input Header cannot be encoded // and an error is returned explaining why. // // As a by-product of checking the fields, this function returns paxHdrs, which // contain all fields that could not be directly encoded. // A value receiver ensures that this method does not mutate the source Header.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 13 21:03:27 UTC 2024 - 24.5K bytes - Viewed (0)