ddn.net.sftp.wire
Local wire-format reader/writer for the SFTP protocol.
The SFTP package cannot import ddn.net.ssh.wire from the SSH implementation package, so this module provides the bounded fixed-width field codec the SFTP protocol needs: length-prefixed strings, uint32/uint64, and raw bytes, all with the same before-allocation limit discipline.
Types 3
classSftpWireException : Exception
Raised for wire-format violations.
Constructors
this(string msg, string file = __FILE__, size_t line = __LINE__)Constructs a wire exception.structSftpReader
Sequential bounded reader over SFTP wire bytes.
Fields
private const(ubyte)[] buf_private size_t pos_Methods
const(ubyte)[] readString(size_t maxLength = 32768) @safeReads a length-prefixed string as a slice (no copy).Constructors
this(const(ubyte)[] data)Constructs a reader over a buffer.structSftpWriter