Documentation ¶
Index ¶
- Constants
- type Reader
- func (r *Reader) Decrypt(destination []byte, source []byte) error
- func (r *Reader) InitializeReadWaiter(options N.ReadWaitOptions) (needCopy bool)
- func (r *Reader) Read(p []byte) (n int, err error)
- func (r *Reader) ReadBuffer(buffer *buf.Buffer) error
- func (r *Reader) ReadFixedBuffer(pLen int) (*buf.Buffer, error)
- func (r *Reader) WaitReadBuffer() (buffer *buf.Buffer, err error)
- type Writer
- type WriterInterface
Constants ¶
View Source
const ( // Overhead // crypto/cipher.gcmTagSize // golang.org/x/crypto/chacha20poly1305.Overhead Overhead = 16 )
View Source
const PacketLengthBufferSize = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) InitializeReadWaiter ¶
func (r *Reader) InitializeReadWaiter(options N.ReadWaitOptions) (needCopy bool)
type Writer ¶
type Writer struct { WriterInterface // contains filtered or unexported fields }
type WriterInterface ¶
type WriterInterface struct{}
func (*WriterInterface) FrontHeadroom ¶
func (w *WriterInterface) FrontHeadroom() int
func (*WriterInterface) RearHeadroom ¶
func (w *WriterInterface) RearHeadroom() int
Click to show internal directories.
Click to hide internal directories.