- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 207 for unsigned (0.07 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_CONNECTION_OK, buffer, 4); response.readParametersWireFormat(buffer, 0, 6); assertEquals(0, response.getAvailable()); // Test maximum unsigned 16-bit value (65535) SMBUtil.writeInt2(0xFFFF, buffer, 0); TransPeekNamedPipeResponse response2 = new TransPeekNamedPipeResponse(mockConfig); response2.readParametersWireFormat(buffer, 0, 6);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/Hashing.java
* * <p>This is designed for generating persistent fingerprints of strings. It isn't * cryptographically secure, but it produces a high-quality hash with few collisions. Fingerprints * generated using this are byte-wise identical to those created using the C++ version, but note * that this uses unsigned integers (see {@link com.google.common.primitives.UnsignedInts}).
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:06:57 UTC 2025 - 31.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
assertEquals(0, response.getChunkBytesWritten()); assertEquals(0, response.getTotalBytesWritten()); } @Test @DisplayName("Should handle negative values as unsigned") void testDecodeNegativeValuesAsUnsigned() throws SMBProtocolDecodingException { byte[] buffer = new byte[12]; SMBUtil.writeInt4(-1, buffer, 0); // chunksWritten
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Ascii.java
* 'a'/'A' returns 0 and 'z'/'Z' returns 25. Non-alpha characters return a value of 26 or greater. */ private static int getAlphaIndex(char c) { // Fold upper-case ASCII to lower-case and make zero-indexed and unsigned (by casting to char). return (char) ((c | CASE_MASK) - 'a'); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 21.7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashCode.java
for (int i = 1; i < bytes.length; i++) { val |= (bytes[i] & 0xFF) << (i * 8); } return val; } /** * Returns a string containing each byte of {@link #asBytes}, in order, as a two-digit unsigned * hexadecimal number in lower case. * * <p>Note that if the output is considered to be a single hexadecimal number, whether this string
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
byte[] buffer = new byte[256]; int bytesWritten = request.writeBytesWireFormat(buffer, 0); // Negative value should be written as-is (interpreted as unsigned by receiver) assertEquals(-1L, SMBUtil.readInt8(buffer, 8)); } @Test @DisplayName("Should handle zero-length file ID") void testZeroLengthFileId() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
assertEquals(80, bytesRead); assertEquals(0, response.getDataLength()); assertEquals(0, response.getDataRemaining()); } @Test @DisplayName("Should handle data offset byte as unsigned") void testReadBytesWireFormatUnsignedDataOffset() throws Exception { // Given byte[] buffer = new byte[256]; int bodyStart = 0; int dataLength = 5;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
int bytesWritten = copy.encode(buffer, 0); // Then assertEquals(HEADER_SIZE + CHUNK_SIZE, bytesWritten); // Negative values should be encoded as their unsigned representation int chunkStart = HEADER_SIZE; assertEquals(-1L, SMBUtil.readInt8(buffer, chunkStart)); assertEquals(-100L, SMBUtil.readInt8(buffer, chunkStart + 8));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
byte[] buffer = new byte[256]; int bytesWritten = request.writeBytesWireFormat(buffer, 0); // Negative value should be written as-is (interpreted as unsigned by receiver) assertEquals(-1L, SMBUtil.readInt8(buffer, 8)); } @Test @DisplayName("Should handle zero-length read") void testZeroLengthRead() {
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/internal/fscc/FileFsSizeInformationTest.java
@Test @DisplayName("Should handle negative values in buffer") void shouldHandleNegativeValuesInBuffer() throws SMBProtocolDecodingException { // Given - negative values (treated as unsigned in protocol) ByteBuffer buffer = ByteBuffer.allocate(24); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putLong(-1L); buffer.putLong(-1L); buffer.putInt(-1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0)