- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,385 for 1byte (0.04 sec)
-
cmd/bucket-lifecycle-handlers_test.go
testCases := []struct { method string bucketName string accessKey string secretKey string // Sent body body []byte // Expected response expectedRespStatus int lifecycleResponse []byte errorResponse APIErrorResponse shouldPass bool }{ // GET empty credentials { method: http.MethodGet, bucketName: bucketName,Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
assertTrue(result > 0); assertEquals((byte) 0x04, dst[0]); // First buffer format byte // Find the second buffer format byte by searching for it // In Unicode mode, the old filename is written as Unicode, then 0x04, then an alignment byte int secondBufferFormatIndex = -1; for (int i = 1; i < result - 1; i++) { if (dst[i] == (byte) 0x04) { secondBufferFormatIndex = i;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertEquals((byte) (listCount & 0xFF), dst[2]); assertEquals((byte) ((listCount >> 8) & 0xFF), dst[3]); // informationLevel (2 bytes, LE) -> 0x0104 assertEquals((byte) 0x04, dst[4]); assertEquals((byte) 0x01, dst[5]); // resumeKey (4 bytes, LE) assertEquals((byte) 0xEF, dst[6]); assertEquals((byte) 0xCD, dst[7]); assertEquals((byte) 0xAB, dst[8]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
long timeout = 3000L; FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName, timeout); // Encode multiple times byte[] buffer1 = new byte[100]; byte[] buffer2 = new byte[100]; byte[] buffer3 = new byte[100]; int encoded1 = request.encode(buffer1, 0); int encoded2 = request.encode(buffer2, 0); int encoded3 = request.encode(buffer3, 0);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java
this.maxParameterCount = 6; this.maxDataCount = 1; this.maxSetupCount = (byte) 0x00; this.setupCount = 2; } @Override protected int writeSetupWireFormat(final byte[] dst, int dstIndex) { dst[dstIndex] = this.getSubCommand(); dstIndex++; dst[dstIndex++] = (byte) 0x00; // this says "Transaction priority" in netmonRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
byte testInfoType = (byte) 0x01; request.setInfoType(testInfoType); // Verify info type was set Field infoTypeField; try { infoTypeField = Smb2QueryInfoRequest.class.getDeclaredField("infoType"); infoTypeField.setAccessible(true); byte actualInfoType = (byte) infoTypeField.get(request);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
private static Stream<Arguments> provideFidTestCases() { return Stream.of(Arguments.of(0x0000, (byte) 0x00, (byte) 0x00), Arguments.of(0x00FF, (byte) 0xFF, (byte) 0x00), Arguments.of(0xFF00, (byte) 0x00, (byte) 0xFF), Arguments.of(0xFFFF, (byte) 0xFF, (byte) 0xFF), Arguments.of(0x1234, (byte) 0x34, (byte) 0x12)); } @Test @DisplayName("readSetupWireFormat should return 0")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/util/CryptoTest.java
} @Test @DisplayName("Should handle AES encryption operations") void testAESOperations() throws Exception { // Given byte[] key = new byte[16]; // 128-bit key byte[] iv = new byte[16]; // 128-bit IV byte[] plaintext = "This is test data for AES encryption test".getBytes(); new SecureRandom().nextBytes(key); new SecureRandom().nextBytes(iv);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2RdmaTransformCapabilitiesContext.java
public int getContextType() { return CONTEXT_ID; } /** * Get the context data * * @return encoded context data */ public byte[] getData() { // Encode the context data byte[] data = new byte[20]; // 2 + 2 + 4 + 4 + 4 + 4 int idx = 0; SMBUtil.writeInt2(transformCount, data, idx); idx += 2; SMBUtil.writeInt2(reserved1, data, idx);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
void writeSetupWireFormatReturnsZero(int index) { TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse(); assertEquals(0, resp.writeSetupWireFormat(new byte[10], index), "writeSetupWireFormat should always return 0"); } @ParameterizedTest @ValueSource(ints = { 0, 5, -5, Integer.MAX_VALUE })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0)