- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,386 for Byte (0.01 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
} @ParameterizedTest @ValueSource(ints = { 0, 5, 9 }) @DisplayName("Returns 0 with valid array and various indices") void nonNullArray(int index) { byte[] arr = new byte[10]; assertEquals(0, response.writeParameterWordsWireFormat(arr, index)); } } @Nested @DisplayName("writeBytesWireFormat tests") class WriteBytes { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
Smb2SessionSetupResponse resp = newResponse(); byte[] buf = new byte[256]; int headerStart = 0; long expectedSessionId = 0x1122334455667788L; buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId); int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HMACT64Test.java
class HMACT64Test { private static final byte[] TEST_KEY = "testkey".getBytes(); private static final byte[] LONG_TEST_KEY = new byte[80]; // Longer than 64 bytes private static final byte[] SHORT_TEST_KEY = "short".getBytes(); private static final byte[] TEST_DATA = "testdata".getBytes(); private static final byte[] EMPTY_DATA = new byte[0]; static { // Initialize long key with predictable data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
request.setPadding((byte) 4); request.setReadFlags((byte) 0x02); // Update file ID byte[] newFileId = new byte[16]; Arrays.fill(newFileId, (byte) 0xEF); request.setFileId(newFileId); // Write and verify byte[] buffer = new byte[256];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
byte subCmd = (byte) getPrivateField(cmd, "subCommand"); assertEquals(subCmd, buf[0]); assertEquals((byte) 0x00, buf[1]); } @Test @DisplayName("writeParametersWireFormat writes referral level and path") void testWriteParams() throws Exception { Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("abc"); setPrivateField(cmd, "maxReferralLevel", 0x12AB);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
cmd/bucket-stats_gen.go
} return } // MarshalMsg implements msgp.Marshaler func (z RMetricName) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendString(o, string(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *RMetricName) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 string zb0001, bts, err = msgp.ReadStringBytes(bts)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 57.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java
*/ public WitnessUnregisterMessage(byte[] contextHandle) { super(WITNESS_UNREGISTER); this.contextHandle = contextHandle != null ? contextHandle.clone() : new byte[20]; } /** * Sets the context handle for unregistration. * * @param contextHandle the context handle from registration */ public void setContextHandle(byte[] contextHandle) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
for (int i = 0; i < 24; i++) { assertEquals((byte) 0xAA, resumeKey[i], "Resume key byte " + i + " should be 0xAA"); } } @Test @DisplayName("Test decode throws exception when length is too short") void testDecodeThrowsExceptionWhenLengthTooShort() { byte[] buffer = new byte[28]; // Test with len = 23 (one byte too short)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
public void testBytes() { Sink sink = new Sink(4); // byte order insignificant here byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8}; sink.putByte((byte) 1); sink.putBytes(new byte[] {2, 3, 4, 5, 6}); sink.putByte((byte) 7); sink.putBytes(new byte[] {}); sink.putBytes(new byte[] {8}); HashCode unused = sink.hash(); sink.assertInvariants(8); sink.assertBytes(expected);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
byte[] key1 = new byte[16]; byte[] key2 = new byte[16]; new SecureRandom().nextBytes(key1); new SecureRandom().nextBytes(key2); keyManager.storeSessionKey(sessionId1, key1, "AES"); keyManager.storeSessionKey(sessionId2, key2, "AES"); byte[] retrieved1 = keyManager.getRawKey(sessionId1); byte[] retrieved2 = keyManager.getRawKey(sessionId2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0)