Documentation ¶
Index ¶
- func BitsFromBinStrReader(ctx context.Context, r io.Reader) ([]types.Bit, error)
- func BitsFromBinStrReaderWithCap(ctx context.Context, r io.Reader, maxBits int) ([]types.Bit, error)
- func BitsFromByteFile(ctx context.Context, filename string) func() ([]types.Bit, error)
- func BitsFromByteReader(ctx context.Context, r io.Reader) ([]types.Bit, error)
- func BitsFromByteReaderWithCap(ctx context.Context, r io.Reader, maxBits int) ([]types.Bit, error)
- func BitsFromByteStdin(ctx context.Context) ([]types.Bit, error)
- func BitsFromReader(ctx context.Context, r io.Reader, opts ...opt) ([]types.Bit, error)
- func BitsToByteWriter(ctx context.Context, w io.Writer, bits []types.Bit) error
- func BitsToString(bits []types.Bit, opts ...Opt) string
- type Opt
- type ReaderWithSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitsFromBinStrReader ¶
func BitsFromByteFile ¶
func BitsFromByteReader ¶
func BitsFromReader ¶
func BitsToByteWriter ¶
Types ¶
type ReaderWithSize ¶
type ReaderWithSize interface { io.Reader // Size return the size in bytes of the reader content Size() int }
func NewReaderWithSize ¶
func NewReaderWithSize(r io.Reader, size int) ReaderWithSize
Click to show internal directories.
Click to hide internal directories.