Documentation ¶
Index ¶
- func BytesToString(b []byte) string
- func IsExist(path string) bool
- func IsNotExist(path string) bool
- func NewWriterF(f func(writer *Writer)) []byte
- func OpenWriterF(f func(*Writer)) (b []byte, cl func())
- func PutWriter(w *Writer)
- func StringToBytes(s string) (b []byte)
- type Writer
- func (w *Writer) Bytes() []byte
- func (w *Writer) FillUInt16() (pos int)
- func (w *Writer) FillUInt32() (pos int)
- func (w *Writer) Grow(n int)
- func (w *Writer) Len() int
- func (w *Writer) Reset()
- func (w *Writer) Skip(n int) (int, error)
- func (w *Writer) Write(b []byte) (n int, err error)
- func (w *Writer) WriteBool(b bool)
- func (w *Writer) WriteByte(b byte) error
- func (w *Writer) WriteBytesShort(data []byte)
- func (w *Writer) WriteHex(h string)
- func (w *Writer) WriteString(v string)
- func (w *Writer) WriteStringShort(v string)
- func (w *Writer) WriteUInt16(v uint16)
- func (w *Writer) WriteUInt16At(pos int, v uint16)
- func (w *Writer) WriteUInt32(v uint32)
- func (w *Writer) WriteUInt32At(pos int, v uint32)
- func (w *Writer) WriteUInt64(v uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWriterF ¶
func OpenWriterF ¶
OpenWriterF must call func cl to close
Types ¶
type Writer ¶
Writer 写入
func (*Writer) FillUInt16 ¶
func (*Writer) FillUInt32 ¶
func (*Writer) WriteBytesShort ¶
func (*Writer) WriteString ¶
func (*Writer) WriteStringShort ¶
func (*Writer) WriteUInt16 ¶
func (*Writer) WriteUInt16At ¶
func (*Writer) WriteUInt32 ¶
func (*Writer) WriteUInt32At ¶
func (*Writer) WriteUInt64 ¶
Click to show internal directories.
Click to hide internal directories.