ioop

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 0

README

サンプルリスト

このディレクトリには以下のサンプルがあります。

file example name note
limitread.go ioop_limit_read io.LimitedReader のサンプルです.
onebyteread.go ioop_onebyte_read 1バイトずつ読み出す io.LimitedReader のサンプルです.
multiwrite.go ioop_multiwrite io.MultiWriterを利用してgzip圧縮しながらCRCチェックサムも算出するサンプルです.
multiread.go ioop_multiread io.MultiReaderを利用して複数のファイルを一気に読み込むサンプルです。

Documentation

Overview

Package ioop -- ioパッケージなどに存在する デコレータ 系の処理についてサンプルが配置されています.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimitRead

func LimitRead() error

LimitRead は、io.LimitedReader のサンプルです.

通信データのように固定部分を決まったサイズで読み取るときなどに便利。

REFERENCES

func MultiRead added in v0.5.19

func MultiRead() error

MultiRead は、io.MultiReaderを利用して複数のファイルを一気に読み込むサンプルです。

> MultiReader returns a Reader that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs have returned EOF, Read will return EOF. If any of the readers return a non-nil, non-EOF error, Read will return that error.

> MultiReaderは、与えられた入力リーダーを論理的に連結したリーダーを返します。 順次読み込まれ、すべての入力がEOFを返したらEOFを返します。 いずれかのリーダがEOF以外のエラーを返した場合、Readはそのエラーを返します。

REFERENCES

func MultiWrite added in v0.5.19

func MultiWrite() error

MultiWrite は、io.MultiWriterを利用してgzip圧縮しながらCRCチェックサムも算出するサンプルです.

REFERENCES

func NewRegister

func NewRegister() mapping.Register

NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。

func OneByteRead

func OneByteRead() error

OneByteRead は、1バイトずつ読み出す io.LimitedReader のサンプルです.

通信データのように固定部分を決まったサイズで読み取るときなどに便利。

REFERENCES

Types

This section is empty.

Jump to

Keyboard shortcuts

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