- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,058 for ints (0.12 sec)
-
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
String shareName = "SHARE1"; int shareType = 0x00000000; // Disk share String remark = "Test share"; // Calculate buffer size int shareNameSize = 14; // 13 bytes + null terminator (fixed field) int typeSize = 2; int offsetSize = 4; int remarkSize = remark.length() + 1; int totalSize = shareNameSize + typeSize + offsetSize + remarkSize;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
assertThat(e.getStackTrace()[index - 1].getMethodName()).isEqualTo("get"); } private static int findStackFrame(ExecutionException e, String clazz, String method) { StackTraceElement[] elements = e.getStackTrace(); for (int i = 0; i < elements.length; i++) { StackTraceElement element = elements[i]; if (element.getClassName().equals(clazz) && element.getMethodName().equals(method)) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
Method pad8Method = ServerMessageBlock2.class.getDeclaredMethod("pad8", int.class); pad8Method.setAccessible(true); // Test various positions int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 }; for (int pos : positions) { int padding = (int) pad8Method.invoke(req, pos); // Verify padding makes position 8-byte aligned
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Given - large buffer with many notifications byte[] buffer = new byte[65536]; int offset = 0; setHeaderStart(response, 64); // Calculate space for notifications int notificationSize = 32; // Each notification int notificationCount = 100; int totalSize = notificationSize * notificationCount; // Write structure
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
} private void ensureRoomFor(int numberToAdd) { int newCount = count + numberToAdd; // TODO(kevinb): check overflow now? if (newCount > array.length) { array = Arrays.copyOf(array, expandedCapacity(array.length, newCount)); } } // Unfortunately this is pasted from ImmutableCollection.Builder. private static int expandedCapacity(int oldCapacity, int minCapacity) { if (minCapacity < 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 22K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
* that entries are indexable using ints. */ static final int MAXIMUM_CAPACITY = Ints.MAX_POWER_OF_TWO; /** The maximum number of segments to allow; used to bound constructor arguments. */ static final int MAX_SEGMENTS = 1 << 16; // slightly conservative /** Number of (unsynchronized) retries in the containsValue method. */ static final int CONTAINS_VALUE_RETRIES = 3; /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 90K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
}) void testWriteParametersWireFormatWithDifferentLevels(int infoLevel, int expectedMappedValue) { trans2QueryFSInfo = new Trans2QueryFSInformation(config, infoLevel); byte[] buffer = new byte[512]; trans2QueryFSInfo.writeParametersWireFormat(buffer, 0); // Check mapped information level int actualInfoLevel = SMBUtil.readInt2(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
void testDeriveKeys_DifferentSessionKeySizes() { // Test with various session key sizes int[] keySizes = { 8, 16, 24, 32, 64, 128 }; int dialect = Smb2Constants.SMB2_DIALECT_0311; for (int size : keySizes) { // Given byte[] testKey = new byte[size]; new SecureRandom().nextBytes(testKey); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
byte[] buffer = new byte[256]; int result = request.readBytesWireFormat(buffer, 0); assertEquals(0, result); } @ParameterizedTest @ValueSource(ints = { 0, 10, 50, 100 }) @DisplayName("writeBytesWireFormat should work at different offsets") void testWriteBytesWireFormatAtDifferentOffsets(int offset) { byte[] buffer = new byte[512];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Lists.java
return forwardList; } private int reverseIndex(int index) { int size = size(); checkElementIndex(index, size); return (size - 1) - index; } private int reversePosition(int index) { int size = size(); checkPositionIndex(index, size); return size - index; } @Override public void add(int index, @ParametricNullness T element) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 42.2K bytes - Viewed (0)