- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 69 for expectedSizes (0.79 sec)
-
guava/src/com/google/common/io/ByteStreams.java
static byte[] toByteArray(InputStream in, long expectedSize) throws IOException { checkArgument(expectedSize >= 0, "expectedSize (%s) must be non-negative", expectedSize); if (expectedSize > MAX_ARRAY_LEN) { throw new OutOfMemoryError(expectedSize + " bytes is too large to fit in a byte array"); } byte[] bytes = new byte[(int) expectedSize]; int remaining = (int) expectedSize; while (remaining > 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
int size = request.size(); // Then // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 32 int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 32; // The size8 method aligns to 8-byte boundary int alignedSize = (expectedSize + 7) & ~7; assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java
} @Test @DisplayName("Test context size calculation") public void testContextSize() { int expectedSize = 8 + (3 * 2); // Header + 3 algorithms * 2 bytes each assertEquals(expectedSize, context.size()); } @Test @DisplayName("Test context with flags") public void testContextWithFlags() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.expectedSize(8).create(); assertEquals(8, queue.capacity()); checkUnbounded(queue); checkNatural(queue); } public void testCreation_expectedSize_comparator() { MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).expectedSize(8).create(); assertEquals(8, queue.capacity());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// When int size = request.size(); // Then // SMB2_HEADER_LENGTH + 4 bytes for tree disconnect structure int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 4; // size8 method aligns to 8-byte boundary int alignedSize = (expectedSize + 7) & ~7; assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
if err != nil { t.Errorf("Test %d: Expected to pass but failed. %s", i+1, err) } if err == nil && s != testCase.expectedSize { t.Errorf("Test %d: The calculated part size is incorrect: expected = %d, found = %d\n", i+1, testCase.expectedSize, s) } } testCasesFailure := []struct { totalSize int64 partSize int64 partIndex int err error }{
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
class SizeTests { @Test @DisplayName("Should return correct size") void testSize() { int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 4; // size8 rounds up to 8-byte boundary int expectedAlignedSize = (expectedSize + 7) & ~7; assertEquals(expectedAlignedSize, echoRequest.size()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
} @Test @DisplayName("size should return correct message size") void testSize() { int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24; // size8 method rounds up to 8-byte boundary int expectedAlignedSize = (expectedSize + 7) & ~7; assertEquals(expectedAlignedSize, request.size()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// When int size = req.size(); // Then int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24 + token.length; int alignedSize = (expectedSize + 7) & ~7; // size8 alignment assertEquals(alignedSize, size); } @Test @DisplayName("Should calculate correct message size without token")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0)