- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,693 for byte2 (0.03 sec)
-
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
"Raw bytes for empty string should be empty"); byte[] emptyBytes = new byte[0]; AvTargetName avTargetNameFromBytes = new AvTargetName(emptyBytes); assertEquals(emptyString, avTargetNameFromBytes.getTargetName(), "Empty string should be handled correctly from raw bytes constructor");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, err error) { if len(buf) <= 8 { return payload, 0, 0, fmt.Errorf("xlMeta: no data") } if !bytes.Equal(buf[:4], xlHeader[:]) { return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4]) } if bytes.Equal(buf[4:8], []byte("1 ")) { // Set as 1,0. major, minor = 1, 0
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 40.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
private int dataWireFormatReturn = 0; private byte[] setupBuffer; private byte[] parametersBuffer; private byte[] dataBuffer; public TestSmbComTransaction(Configuration config, byte command, byte subCommand) { super(config, command, subCommand); } @Override protected int writeSetupWireFormat(byte[] dst, int dstIndex) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
bytes[byteIndex++] = (byte) (0xC0 | (c >> 6)); bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F)); } else { bytes[byteIndex++] = (byte) (0xE0 | (c >> 12)); bytes[byteIndex++] = (byte) (0x80 | ((c >> 6) & 0x3F)); bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F)); } } return Arrays.copyOf(bytes, byteIndex); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
byte[] dst1 = new byte[256]; int bytesWritten1 = netShareEnum.writeParametersWireFormat(dst1, 0); // Test with offset 100 byte[] dst2 = new byte[256]; int bytesWritten2 = netShareEnum.writeParametersWireFormat(dst2, 100); // Same number of bytes should be written assertEquals(bytesWritten1, bytesWritten2); // Data should be the same, just at different offsetsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java
byte[] maxGuid = new byte[16]; Arrays.fill(maxGuid, (byte) 0xFF); ValidateNegotiateInfoRequest request = new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, maxGuid, DEFAULT_SECURITY_MODE, defaultDialects); byte[] buffer = new byte[request.size()]; request.encode(buffer, 0); // Verify max GUID byte[] extractedGuid = new byte[16];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.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 dataRegistered: 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/netbios/SessionRetargetResponsePacketTest.java
} @Test void readTrailerWireFormatShouldReadSixBytesSuccessfully() throws IOException { // Test successful reading of 6 bytes from the input stream. // The content of these bytes is not critical for this test, only that 6 bytes are read. byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytesRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K 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/smb1/netbios/SocketInputStreamTest.java
* The header format is: * - Byte 0: Message type (0x00 for SESSION_MESSAGE) * - Byte 1: High bit of 17-bit length field * - Bytes 2-3: Lower 16 bits of length field */ private static byte[] messageHeader(int length) { byte[] h = new byte[4]; h[0] = (byte) SessionServicePacket.SESSION_MESSAGE; h[1] = (byte) ((length >> 16) & 0x01); h[2] = (byte) ((length >> 8) & 0xFF);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0)