- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 420 for dst1 (0.03 seconds)
-
internal/ioutil/read_file.go
if err != nil { return nil, nil, err } defer f.Close() st, err := f.Stat() if err != nil { return nil, nil, err } dst := make([]byte, st.Size()) _, err = io.ReadFull(f, dst) return dst, st, err } // ReadFile reads the named file and returns the contents. // A successful call returns err == nil, not err == EOF.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Dec 09 18:17:51 GMT 2023 - 2.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FileStandardInfo.java
*/ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.allocationSize, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt8(this.endOfFile, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.numberOfLinks, dst, dstIndex); dstIndex += 4; dst[dstIndex] = (byte) (this.deletePending ? 1 : 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
// Given byte[] dst = new byte[100]; smbComRename = new SmbComRename(config, "", ""); int dstIndex = 0; // When int result = smbComRename.writeBytesWireFormat(dst, dstIndex); // Then assertTrue(result > 0); assertEquals((byte) 0x04, dst[0]); // First buffer format byte assertEquals((byte) 0x00, dst[1]); // Null terminator for empty old file nameCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java
dst[dstIndex] = this.getSubCommand(); dstIndex++; dst[dstIndex++] = (byte) 0x00; return 2; } @Override protected int writeParametersWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(mapInformationLevel(this.informationLevel), dst, dstIndex); dstIndex += 2;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
// Given byte[] dst = new byte[100]; // When & Then assertEquals(0, response.writeBytesWireFormat(dst, 0)); assertEquals(0, response.writeBytesWireFormat(dst, 25)); assertEquals(0, response.writeBytesWireFormat(dst, 50)); assertEquals(0, response.writeBytesWireFormat(dst, 75));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComDelete.java
@Override int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { writeInt2(searchAttributes, dst, dstIndex); return 2; } @Override int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dst[dstIndex] = (byte) 0x04; dstIndex++; dstIndex += writeString(path, dst, dstIndex); return dstIndex - start; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java
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 netmon SMBUtil.writeInt2(this.fid, dst, dstIndex); return 4; } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
byte[] dst = new byte[10]; // The method should not write anything and return 0 assertEquals(0, response.writeParametersWireFormat(dst, 0), "writeParametersWireFormat should return 0."); } /** * Test for the writeDataWireFormat method. * It should always return 0. */ @Test void testWriteDataWireFormat() { byte[] dst = new byte[10];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FileBasicInfo.java
public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeTime(this.createTime, dst, dstIndex); dstIndex += 8; SMBUtil.writeTime(this.lastAccessTime, dst, dstIndex); dstIndex += 8; SMBUtil.writeTime(this.lastWriteTime, dst, dstIndex); dstIndex += 8; SMBUtil.writeTime(this.changeTime, dst, dstIndex); dstIndex += 8;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.7K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComNtTransaction.java
@Override int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; if (command != SMB_COM_NT_TRANSACT_SECONDARY) { dst[dstIndex++] = maxSetupCount; } else { dst[dstIndex++] = (byte) 0x00; // Reserved } dst[dstIndex] = (byte) 0x00; // Reserved dstIndex++; dst[dstIndex++] = (byte) 0x00; // ReservedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3K bytes - Click Count (0)