- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for setLength (0.23 sec)
-
src/main/java/jcifs/SmbRandomAccess.java
/** * Expand/truncate file length * * @param newLength * new file length * @throws SmbException */ void setLength ( long newLength ) throws SmbException;
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
} } public void run() { int nameTrnId; NameServicePacket response; try { while( thread == Thread.currentThread() ) { in.setLength( RCV_BUF_SIZE ); socket.setSoTimeout( closeTimeout ); socket.receive( in ); if( log.level > 3 )
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 20:39:42 GMT 2019 - 17.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
advance(l); } public void readOctetArray(byte[] b, int i, int l) { System.arraycopy(buf, index, b, i, l); advance(l); } public int getLength() { return deferred.length; } public void setLength(int length) { deferred.length = length; } public void advance(int n) { index += n; if ((index - start) > deferred.length) {
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 20:39:42 GMT 2019 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcHandle.java
/** * @param fbuf * @throws DcerpcException */ private void setupReceivedFragment ( NdrBuffer fbuf ) throws DcerpcException { fbuf.reset(); fbuf.setIndex(8); fbuf.setLength(fbuf.dec_ndr_short()); if ( this.securityProvider != null ) { this.securityProvider.unwrap(fbuf); } } /** * @param msg * @param out
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jun 30 10:11:57 GMT 2019 - 12.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
this.responseTable.clear(); } } @Override public void run () { try { while ( this.thread == Thread.currentThread() ) { this.in.setLength(this.transportContext.getConfig().getNetbiosRcvBufSize()); this.socket.setSoTimeout(this.closeTimeout); this.socket.receive(this.in);
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Aug 14 14:26:22 GMT 2022 - 38.2K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileOperationsTest.java
SmbFile t = new SmbFile(d1, makeRandomName()) ) { try { try ( SmbRandomAccessFile ra = f.openRandomAccess("rw") ) { ra.setLength(length); } f.copyTo(t); assertTrue(f.exists()); assertEquals(f.length(), t.length());
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Thu Jan 05 13:17:59 GMT 2023 - 16.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
return fp; } public void seek( long pos ) throws SmbException { fp = pos; } public long length() throws SmbException { return file.length(); } public void setLength( long newLength ) throws SmbException { // ensure file is open if( file.isOpen() == false ) { file.open( openFlags, 0, SmbFile.ATTR_NORMAL, options ); }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/RandomAccessFileTest.java
try ( SmbFile f = createTestFile() ) { try { long newLength = 4096L; try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) { raf.setLength(newLength); } assertEquals(newLength, f.length()); } finally { f.delete(); } } } @Test
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java
off += n; } doReceiveFragment(stub, isDirect); buf.reset(); buf.setIndex(8); buf.setLength(buf.dec_ndr_short()); if (securityProvider != null) securityProvider.unwrap(buf); buf.setIndex(0); msg.decode_header(buf);
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
public void readOctetArray ( byte[] b, int i, int l ) { System.arraycopy(this.buf, this.index, b, i, l); advance(l); } public int getLength () { return this.deferred.length; } public void setLength ( int length ) { this.deferred.length = length; } public void advance ( int n ) { this.index += n;
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 6.6K bytes - Viewed (0)