- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 1,108 for dsbyte (0.43 sec)
-
src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponse.java
} @Override protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeDataWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
// Test interface method byte[] newFileId = new byte[16]; Arrays.fill(newFileId, (byte) 0x42); ((jcifs.internal.smb2.RequestWithFileId) request).setFileId(newFileId); // Verify it was set correctly by writing to wire format byte[] buffer = new byte[256]; request.writeBytesWireFormat(buffer, 0); byte[] copiedFileId = new byte[16];
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/netbios/NameServicePacketTest.java
assertEquals((byte) 0x56, dst[2]); assertEquals((byte) 0x78, dst[3]); } @Test void testReadInt2() { byte[] src = { (byte) 0x12, (byte) 0x34 }; assertEquals(0x1234, NameServicePacket.readInt2(src, 0)); } @Test void testReadInt4() { byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 }; assertEquals(0x12345678, NameServicePacket.readInt4(src, 0)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
protected int readHeaderWireFormat(byte[] buffer, int bufferIndex) { return 33; } }; testBlock.configureForTest(true, 2); testBlock.setCommand((byte) ServerMessageBlock.SMB_COM_NT_CREATE_ANDX); byte[] buffer = new byte[1024]; buffer[33] = 34; // wordCount for extended response buffer[34] = (byte) 0xFF; // andxCommand
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
// so readBytesWireFormat() is invoked and must delegate back to readErrorResponse() when it sees size=9. byte[] header = buildHeader(NtStatus.NT_STATUS_INVALID_PARAMETER); byte[] body = buildErrorBody(2, 3, new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC }); byte[] packet = new byte[header.length + body.length]; System.arraycopy(header, 0, packet, 0, header.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
tests/serializer_test.go
} type CustomSerializer struct { prefix []byte } func NewCustomSerializer(prefix string) *CustomSerializer { return &CustomSerializer{prefix: []byte(prefix)} } func (c *CustomSerializer) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error) { switch value := dbValue.(type) { case []byte: err = field.Set(ctx, dst, bytes.TrimPrefix(value, c.prefix))
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 7.6K bytes - Viewed (0) -
src/bytes/example_test.go
fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte("O"))) fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte("Ami"))) fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte(""))) // Output: // true // false // false // true } func ExampleIndex() { fmt.Println(bytes.Index([]byte("chicken"), []byte("ken"))) fmt.Println(bytes.Index([]byte("chicken"), []byte("dmr"))) // Output: // 4 // -1 }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 12 16:07:54 UTC 2025 - 16.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
* The header format is: * - Byte 0: Message type (0x00 for SESSION_MESSAGE) * - Byte 1: High bit of 17-bit length field * - Bytes 2-3: Lower 16 bits of length field */ private static byte[] messageHeader(int length) { byte[] h = new byte[4]; h[0] = (byte) SessionServicePacket.SESSION_MESSAGE; h[1] = (byte) ((length >> 16) & 0x01); h[2] = (byte) ((length >> 8) & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
if (dataSize > outputBuffer.length) { return; // Skip sizes larger than buffer } byte[] sourceData = new byte[dataSize]; for (int i = 0; i < dataSize; i++) { sourceData[i] = (byte) (i % 256); } byte[] buffer = new byte[dataSize + 50]; System.arraycopy(sourceData, 0, buffer, 10, dataSize);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponse.java
return true; } @Override protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeDataWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.6K bytes - Viewed (0)