- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 136 for reflectLen (0.9 sec)
-
finisher_api.go
case reflect.Slice, reflect.Array: var rowsAffected int64 tx = db.getInstance() // the reflection length judgment of the optimized value reflectLen := reflectValue.Len() callFc := func(tx *DB) error { for i := 0; i < reflectLen; i += batchSize { ends := i + batchSize if ends > reflectLen { ends = reflectLen } subtx := tx.getInstance()
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Aug 26 06:24:29 UTC 2025 - 22.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
* FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="https://bugs.openjdk.org/browse/JDK-6570631">JDK-6570631</a> is fixed. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getSubListOriginalListSetAffectsSubListMethod() { return getMethod(ListSubListTester.class, "testSubList_originalListSetAffectsSubList"); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
response.getServerData().encryptionKeyLength = 8; // Domain name in OEM encoding (ASCII) with null terminator byte[] domainBytes = "DOMAIN\0".getBytes("US-ASCII"); // Use reflection to set protected byteCount field int byteCountValue = 8 + domainBytes.length; setByteCount(response, byteCountValue); byte[] buffer = new byte[byteCountValue]; int bufferIndex = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
for (int i = 0; i < dataLength; i++) { testData[i] = (byte) (i & 0xFF); } System.arraycopy(testData, 0, buffer, dataOffsetFromHeader, dataLength); // Use reflection to set headerStart Field headerStartField = ServerMessageBlock2.class.getDeclaredField("headerStart"); headerStartField.setAccessible(true); headerStartField.set(response, headerStart);
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/smb1/trans2/Trans2QueryFSInformationResponseTest.java
// Test getInfo with compatible class response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); // Simulate setting info using reflection SmbInfoAllocation allocation = new SmbInfoAllocation(); setInfoField(response, allocation); SmbInfoAllocation result = response.getInfo(SmbInfoAllocation.class); assertNotNull(result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
README.md
- **I/O Operations** (`org.codelibs.core.io`) - File handling, resource management, stream utilities, and traversal utilities for efficient resource processing - **Reflection** (`org.codelibs.core.lang`) - Class loading, method/field access, type introspection utilities, and generics support
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
@DisplayName("Test getResults returns decoded file entries") void testGetResultsReturnsDecodedEntries() throws Exception { response = new Smb2QueryDirectoryResponse(mockConfig, (byte) 0x03); // Use reflection to set the results field Field resultsField = Smb2QueryDirectoryResponse.class.getDeclaredField("results"); resultsField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
assertSame(originalResponseBuffer, negotiation.getResponseRaw()); } @Test @DisplayName("Test buffer modifications are reflected") void testBufferModifications() { // Since the class returns the same array reference, modifications will be reflected byte[] requestBuffer = negotiation.getRequestRaw(); byte[] responseBuffer = negotiation.getResponseRaw(); // Modify the buffers
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
testSids = new jcifs.SID[] { mockSid1, mockSid2 }; // Act lookupSids = new MsrpcLookupSids(mockPolicyHandle, testSids); // Assert using reflection to verify superclass fields Field handleField = lsarpc.LsarLookupSids.class.getDeclaredField("handle"); handleField.setAccessible(true); assertSame(mockPolicyHandle, handleField.get(lookupSids));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
DcerpcPipeHandle handle = mock(DcerpcPipeHandle.class); // Inject the binding using reflection Field bindingField = DcerpcHandle.class.getDeclaredField("binding"); bindingField.setAccessible(true); bindingField.set(handle, mockDcerpcBinding); // Inject the CIFSContext using reflection Field tcField = DcerpcHandle.class.getDeclaredField("transportContext");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0)