Documentation ¶
Index ¶
- Variables
- type DataInput
- type DataOutput
- type InputStream
- type InputStreamStruct
- func (im *InputStreamStruct) Available() int32
- func (im *InputStreamStruct) Close()
- func (im *InputStreamStruct) Mark(readlimit int32)
- func (im *InputStreamStruct) MarkSupported() bool
- func (im *InputStreamStruct) ReadBS() (byte, error)
- func (im *InputStreamStruct) ReadBS2(b []byte) (n int, err error)
- func (im *InputStreamStruct) ReadBS3(b []byte, off int, l int) (n int, err error)
- func (im *InputStreamStruct) Reset()
- func (im *InputStreamStruct) Skip(n int64) int64
- type OutputStream
- type OutputStreamStruct
- func (om *OutputStreamStruct) Close() error
- func (om *OutputStreamStruct) Flush()
- func (om *OutputStreamStruct) WriteB(b byte) (n int, err error)
- func (om *OutputStreamStruct) WriteBS(b []byte) (n int, err error)
- func (om *OutputStreamStruct) WriteBS2(b []byte, off int32, len int32) (n int, err error)
- type RandomAccessFile
Constants ¶
This section is empty.
Variables ¶
View Source
var MAX_SKIP_BUFFER_SIZE int32 = 2048
Functions ¶
This section is empty.
Types ¶
type DataInput ¶
type DataInput interface { ReadFully(b []byte) ReadFully2(b []byte, off int, len int) SkipBytes(n int32) int32 ReadBool() bool ReadByte() byte ReadUnsignedByte() uint8 ReadShort() int16 ReadUnsignedShort() uint16 ReadChar() int8 ReadInt() int32 ReadLong() int64 ReadFloat() float32 ReadDouble() float64 ReadLine() string ReadUTF() string }
type DataOutput ¶
type DataOutput interface { Write(b byte) WriteBytes(b []byte) WriteBytes2(b []byte, off int32, len int32) WriteBoolean(v bool) WriteByte(v byte) error WriteShort(v int16) WriteChar(v byte) WriteInt(v int32) WriteLong(v int64) WriteFloat(v float32) WriteDouble(v float64) WriteString(s string) WriteChars(s string) WriteUTF(s string) }
type InputStream ¶
type InputStream interface { ReadBS() (byte, error) ReadBS2(b []byte) (n int, err error) ReadBS3(b []byte, off int, l int) (n int, err error) Skip(n int64) int64 Available() int32 Close() Mark(readlimit int32) Reset() MarkSupported() bool GetReader() io.Reader }
func NewInputStream ¶
func NewInputStream(reader io.ReadCloser) InputStream
type InputStreamStruct ¶
type InputStreamStruct struct { // 继承 InputStream // contains filtered or unexported fields }
func (*InputStreamStruct) Available ¶
func (im *InputStreamStruct) Available() int32
func (*InputStreamStruct) Close ¶
func (im *InputStreamStruct) Close()
func (*InputStreamStruct) Mark ¶
func (im *InputStreamStruct) Mark(readlimit int32)
func (*InputStreamStruct) MarkSupported ¶
func (im *InputStreamStruct) MarkSupported() bool
func (*InputStreamStruct) ReadBS ¶
func (im *InputStreamStruct) ReadBS() (byte, error)
func (*InputStreamStruct) ReadBS2 ¶
func (im *InputStreamStruct) ReadBS2(b []byte) (n int, err error)
func (*InputStreamStruct) Reset ¶
func (im *InputStreamStruct) Reset()
func (*InputStreamStruct) Skip ¶
func (im *InputStreamStruct) Skip(n int64) int64
type OutputStream ¶
type OutputStream interface { WriteB(b byte) (n int, err error) WriteBS(b []byte) (n int, err error) WriteBS2(b []byte, off int32, len int32) (n int, err error) Flush() Close() error }
func NewOutputStream ¶
func NewOutputStream(writer io.WriteCloser) OutputStream
type OutputStreamStruct ¶
type OutputStreamStruct struct { //继承 OutputStream // contains filtered or unexported fields }
func (*OutputStreamStruct) Close ¶
func (om *OutputStreamStruct) Close() error
func (*OutputStreamStruct) Flush ¶
func (om *OutputStreamStruct) Flush()
func (*OutputStreamStruct) WriteB ¶
func (om *OutputStreamStruct) WriteB(b byte) (n int, err error)
基础写操作
type RandomAccessFile ¶
type RandomAccessFile struct {
// contains filtered or unexported fields
}
func NewRandomAccessFile ¶
func NewRandomAccessFile(randAcc io.ReadWriteSeeker) *RandomAccessFile
func (*RandomAccessFile) Close ¶
func (rl *RandomAccessFile) Close() error
func (*RandomAccessFile) ReadFully2 ¶
func (rl *RandomAccessFile) ReadFully2(b []byte, off int, bLen int)
Click to show internal directories.
Click to hide internal directories.