- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,556 for Byte (0.61 sec)
-
src/test/java/jcifs/netbios/NameServicePacketTest.java
assertEquals((byte) 0x56, dst[2]); assertEquals((byte) 0x78, dst[3]); } @Test void testReadInt2() { byte[] src = { (byte) 0x12, (byte) 0x34 }; assertEquals(0x1234, NameServicePacket.readInt2(src, 0)); } @Test void testReadInt4() { byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 }; assertEquals(0x12345678, NameServicePacket.readInt4(src, 0)); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
// so readBytesWireFormat() is invoked and must delegate back to readErrorResponse() when it sees size=9. byte[] header = buildHeader(NtStatus.NT_STATUS_INVALID_PARAMETER); byte[] body = buildErrorBody(2, 3, new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC }); byte[] packet = new byte[header.length + body.length]; System.arraycopy(header, 0, packet, 0, header.length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
protected int readHeaderWireFormat(byte[] buffer, int bufferIndex) { return 33; } }; testBlock.configureForTest(true, 2); testBlock.setCommand((byte) ServerMessageBlock.SMB_COM_NT_CREATE_ANDX); byte[] buffer = new byte[1024]; buffer[33] = 34; // wordCount for extended response buffer[34] = (byte) 0xFF; // andxCommand
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransaction.java
static final byte TRANS2_FIND_FIRST2 = (byte) 0x01; static final byte TRANS2_FIND_NEXT2 = (byte) 0x02; static final byte TRANS2_QUERY_FS_INFORMATION = (byte) 0x03; static final byte TRANS2_QUERY_PATH_INFORMATION = (byte) 0x05; static final byte TRANS2_GET_DFS_REFERRAL = (byte) 0x10; static final byte TRANS2_SET_FILE_INFORMATION = (byte) 0x08; static final int NET_SHARE_ENUM = 0x0000;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.4K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java
assertEquals("0 B", format.format(0L, ScaleUnit.BYTE)); assertEquals("0 kB", format.format(0L, ScaleUnit.KILOBYTE)); assertEquals("0 MB", format.format(0L, ScaleUnit.MEGABYTE)); assertEquals("0 GB", format.format(0L, ScaleUnit.GIGABYTE)); assertEquals("5 B", format.format(5L)); assertEquals("5 B", format.format(5L, ScaleUnit.BYTE));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java
/** * An implementation of {@link DataOutput} that uses little-endian byte ordering for writing {@code * char}, {@code short}, {@code int}, {@code float}, {@code double}, and {@code long} values. * * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code * DataOutput}, which explicitly requires big-endian byte order. * * @author Chris Nokleberg * @author Keith Bottner * @since 8.0 */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/NetShareEnum.java
this.maxSetupCount = (byte) 0x00; this.setupCount = 0; this.timeout = 5000; } @Override protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeParametersWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; byte[] descr; try {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.3K bytes - Viewed (0) -
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 { @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
} // Test constructor with external hashes @Test void testConstructorWithExternalHashes() { byte[] challenge = new byte[8]; byte[] ansiHash = new byte[24]; byte[] unicodeHash = new byte[24]; NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", challenge, ansiHash, unicodeHash); assertEquals("DOMAIN", auth.getDomain());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }), Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F })); } @ParameterizedTest @MethodSource("int32Provider") @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset") void testReadParameterWords(int expectedInt, byte[] bytes) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0)