- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 1,599 for 1byte (0.08 seconds)
-
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
void testDecodeReadsCorrectBytes() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[22]; // Fill with pattern to verify we read correct bytes for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) (i + 1); } // Decode int bytesDecoded = smbInfoAllocation.decode(buffer, 0, buffer.length);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
void testReadParametersWireFormatIgnoresMiddleBytes() { // Arrange byte[] buffer = new byte[10]; SMBUtil.writeInt2(200, buffer, 0); // These bytes should be ignored buffer[2] = (byte) 0xFF; buffer[3] = (byte) 0xFF; SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_LISTENING, buffer, 4); // Act
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
cmd/erasure-server-pool-decom_gen.go
func (z decomError) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 1 // string "Err" o = append(o, 0x81, 0xa3, 0x45, 0x72, 0x72) o = msgp.AppendString(o, z.Err) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *decomError) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
void testSetFileId() { request = new Smb2QueryDirectoryRequest(mockConfig); byte[] fileId = new byte[16]; for (int i = 0; i < 16; i++) { fileId[i] = (byte) (i + 1); } request.setFileId(fileId); // Verify by writing to buffer and checking the fileId position byte[] buffer = new byte[1024]; request.writeBytesWireFormat(buffer, Smb2Constants.SMB2_HEADER_LENGTH);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/TransWaitNamedPipe.java
this.maxDataCount = 0; 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; dst[dstIndex++] = (byte) 0x00; // no FID dst[dstIndex++] = (byte) 0x00; return 4; } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java
public static final byte TRANS2_SET_FILE_INFORMATION = (byte) 0x08; /** * Network share enumeration subcommand */ public static final byte NET_SHARE_ENUM = (byte) 0x00; /** * Network server enumeration subcommand version 2 */ public static final byte NET_SERVER_ENUM2 = (byte) 0x68; /** * Network server enumeration subcommand version 3 */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
*/ public void setContext(final byte[] context) { this.context = context; } @Override public byte[] toByteArray() { try { final String targetName = getTarget(); final byte[] challenge = getChallenge(); byte[] context = getContext(); final byte[] targetInformation = getTargetInformation();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
byte[] dst = new byte[10]; int dstIndex = 0; // Act int bytesWritten = transWaitNamedPipe.writeSetupWireFormat(dst, dstIndex); // Assert assertEquals(4, bytesWritten); assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, dst[0]); assertEquals((byte) 0x00, dst[1]); assertEquals((byte) 0x00, dst[2]); // no FIDCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
// Given byte[] originalBuffer = new byte[100]; for (int i = 0; i < originalBuffer.length; i++) { originalBuffer[i] = (byte) i; } byte[] buffer = originalBuffer.clone(); // When Method readParams = SmbComNtCancel.class.getDeclaredMethod("readParameterWordsWireFormat", byte[].class, int.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
* Share type constant for disk shares (file shares). */ public static final byte SMB2_SHARE_TYPE_DISK = 0x1; /** * Share type constant for named pipe shares (IPC). */ public static final byte SMB2_SHARE_TYPE_PIPE = 0x2; /** * Share type constant for printer shares. */ public static final byte SMB2_SHARE_TYPE_PRINT = 0x3; /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.8K bytes - Click Count (0)