go123: lab.nexedi.com/kirr/go123/xio Index | Files

package xio

import "lab.nexedi.com/kirr/go123/xio"

Package xio provides addons to standard package io.


Package Files


type CountedReader Uses

type CountedReader struct {
    // contains filtered or unexported fields

CountedReader is an io.Reader that count total bytes read.

func CountReader Uses

func CountReader(r io.Reader) *CountedReader

CountReader wraps r with CountedReader.

func (*CountedReader) InputOffset Uses

func (cr *CountedReader) InputOffset() int64

InputOffset returns the number of bytes read.

func (*CountedReader) Read Uses

func (cr *CountedReader) Read(p []byte) (int, error)

Package xio imports 1 packages (graph) and is imported by 2 packages. Updated 2019-08-12. Refresh now. Tools for package owners.