SmbRandomAccessFile raf = new SmbRandomAccessFile(smbFile, "rw");
if (fileOffset > raf.length())
raf.setLength(fileOffset);
raf.seek(fileOffset);
byte[] buf = new byte[BUFFER_SIZE];
while (src.remaining() > 0) {
int bc = Math.min(BUFFER_SIZE, src.remaining());