@@ -0,0 +1,2444 @@
+/*%0A * %C2%A9 2017 AgNO3 Gmbh & Co. KG%0A * %0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A * %0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A * %0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A */%0Apackage jcifs.internal.fscc;%0A%0A%0Aimport java.nio.charset.StandardCharsets;%0A%0Aimport jcifs.Encodable;%0Aimport jcifs.internal.util.SMBUtil;%0A%0A%0A/**%0A * @author mbechler%0A *%0A */%0Apublic class FsctlPipeWaitRequest implements Encodable %7B%0A%0A    private final byte%5B%5D nameBytes;%0A    private final long timeout;%0A    private final boolean timeoutSpecified;%0A%0A%0A    /**%0A     * @param name%0A     * %0A     */%0A    public FsctlPipeWaitRequest ( String name ) %7B%0A        this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);%0A        this.timeoutSpecified = false;%0A        this.timeout = 0;%0A    %7D%0A%0A%0A    /**%0A     * @param name%0A     * @param timeout%0A     * %0A     */%0A    public FsctlPipeWaitRequest ( String name, long timeout ) %7B%0A        this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);%0A        this.timeoutSpecified = true;%0A        this.timeout = timeout;%0A    %7D%0A%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     *%0A     * @see jcifs.Encodable#encode(byte%5B%5D, int)%0A     */%0A    @Override%0A    public int encode ( byte%5B%5D dst, int dstIndex ) %7B%0A        int start = dstIndex;%0A        SMBUtil.writeInt8(this.timeout, dst, dstIndex);%0A        dstIndex += 8;%0A        SMBUtil.writeInt4(this.nameBytes.length, dst, dstIndex);%0A        dstIndex += 4;%0A%0A        dst%5B dstIndex %5D = (byte) ( this.timeoutSpecified ? 0x1 : 0x0 );%0A        dstIndex++;%0A        dstIndex++; // Padding%0A%0A        System.arraycopy(this.nameBytes, 0, dst, dstIndex, this.nameBytes.length);%0A        dstIndex += this.nameBytes.length;%0A%0A        return dstIndex - start;%0A    %7D%0A%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     *%0A     * @see jcifs.Encodable#size()%0A     */%0A    @Override%0A    public int size () %7B%0A        return 14 + this.nameBytes.length;%0A    %7D%0A%0A%7D%0A

Add FSCC/FSCTL_PIPE_WAIT request buffer.