package io

Import Path
	github.com/aws/smithy-go/io (on go.dev)

Dependency Relation
	imports 2 packages, and imported by one package

Involved Source Files byte.go Package io provides utilities for Smithy generated API clients. reader.go ringbuffer.go
Package-Level Type Names (total 2, both are exported)
/* sort exporteds by: | */
ReadSeekNopCloser wraps an io.ReadSeeker with an additional Close method that does nothing. ReadSeeker io.ReadSeeker Close does nothing. ( ReadSeekNopCloser) Read(p []byte) (n int, err error) ( ReadSeekNopCloser) Seek(offset int64, whence int) (int64, error) ReadSeekNopCloser : io.Closer ReadSeekNopCloser : io.ReadCloser ReadSeekNopCloser : io.Reader ReadSeekNopCloser : io.ReadSeekCloser ReadSeekNopCloser : io.ReadSeeker ReadSeekNopCloser : io.Seeker
RingBuffer struct satisfies io.ReadWrite interface. ReadBuffer is a revolving buffer data structure, which can be used to store snapshots of data in a revolving window. Bytes returns a copy of the RingBuffer's bytes. Len returns the number of unread bytes in the buffer. Read copies the data on the ring buffer into the byte slice provided to the method. Returns the read count along with any error encountered while reading. Reset resets the ring buffer. Write method inserts the elements in a byte slice, and returns the number of bytes written along with any error. *RingBuffer : io.Reader *RingBuffer : io.ReadWriter *RingBuffer : io.Writer func NewRingBuffer(slice []byte) *RingBuffer
Package-Level Functions (only one, which is exported)
NewRingBuffer method takes in a byte slice as an input and returns a RingBuffer.
Package-Level Constants (total 4, all are exported)
Byte is 8 bits
GibiByte (GiB) is 1024 MiB
KibiByte (KiB) is 1024 Bytes
MebiByte (MiB) is 1024 KiB