rio

package
v3.5.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package rio rquester io 工具包

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	Buf []byte
}

Buffer 为固定长度的 Buf, 实现 io.WriterAt 接口

func NewBuffer

func NewBuffer(buf []byte) *Buffer

NewBuffer 初始化 Buffer

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

Bytes 返回 buf

func (*Buffer) String

func (b *Buffer) String() string

func (*Buffer) WriteAt

func (b *Buffer) WriteAt(p []byte, off int64) (n int, err error)

WriteAt 实现 io.WriterAt 接口 不进行越界检查

type Lener

type Lener interface {
	Len() int
}

Lener 返回32-bit长度接口

type Lener64

type Lener64 interface {
	Len() int64
}

Lener64 返回64-bit长度接口

type ReaderAtLen64

type ReaderAtLen64 interface {
	io.ReaderAt
	Lener64
}

ReaderAtLen64 实现io.ReaderAt和64-bit长度接口

func NewFileReaderAtLen64

func NewFileReaderAtLen64(f *os.File) ReaderAtLen64

NewFileReaderAtLen64 *os.File 实现 ReaderAtLen64 接口

type ReaderLen

type ReaderLen interface {
	io.Reader
	Lener
}

ReaderLen 实现io.Reader和32-bit长度接口

func MultiReaderLen

func MultiReaderLen(readerLens ...ReaderLen) ReaderLen

MultiReaderLen 合并多个ReaderLen

type ReaderLen64

type ReaderLen64 interface {
	io.Reader
	Lener64
}

ReaderLen64 实现io.Reader和64-bit长度接口

func MultiReaderLen64

func MultiReaderLen64(readerLen64s ...ReaderLen64) ReaderLen64

MultiReaderLen64 合并多个ReaderLen64

func NewFileReaderLen64

func NewFileReaderLen64(f *os.File) ReaderLen64

NewFileReaderLen64 *os.File 实现 ReadedLen64 接口

type WriteCloserAt

type WriteCloserAt interface {
	io.WriteCloser
	io.WriterAt
}

WriteCloserAt 实现io.WriteCloser和io.WriterAt接口

type WriteCloserLen64At

type WriteCloserLen64At interface {
	WriteCloserAt
	Lener64
}

WriteCloserLen64At 实现rio.WriteCloserAt和64-bit长度接口

type WriterLen64

type WriterLen64 interface {
	io.Writer
	Lener64
}

WriterLen64 实现io.Writer和64-bit长度接口

Directories

Path Synopsis
Package speeds 速度计算工具包
Package speeds 速度计算工具包

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL