Documentation
¶
Index ¶
- func UnsafeBytesToString(b []byte) string
- func UnsafeToString(b []byte) string
- type ByteBuffer
- func (bb *ByteBuffer) Bytes() []byte
- func (bb *ByteBuffer) Close() error
- func (bb *ByteBuffer) Len() int
- func (bb *ByteBuffer) Position() int
- func (bb *ByteBuffer) Read(buffer []byte) (int, error)
- func (bb *ByteBuffer) Reset()
- func (bb *ByteBuffer) Seek(offset int64, whence int) (int64, error)
- func (bb *ByteBuffer) String() string
- func (bb *ByteBuffer) Write(buffer []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnsafeBytesToString ¶ added in v0.1.19
func UnsafeToString ¶ added in v0.1.11
UnsafeToString 高性能转换 Deprecated: 请使用 UnsafeBytesToString 有 GC 风险,uintptr是整数可能导致 GC 不知道这是指针,最后 GC 回收了底层数组
Types ¶
type ByteBuffer ¶ added in v0.1.8
type ByteBuffer struct {
// contains filtered or unexported fields
}
func MakeByteBuffer ¶ added in v0.1.8
func MakeByteBuffer(buffer []byte) ByteBuffer
func (*ByteBuffer) Bytes ¶ added in v0.1.8
func (bb *ByteBuffer) Bytes() []byte
func (*ByteBuffer) Close ¶ added in v0.1.9
func (bb *ByteBuffer) Close() error
func (*ByteBuffer) Len ¶ added in v0.1.8
func (bb *ByteBuffer) Len() int
func (*ByteBuffer) Position ¶ added in v0.1.8
func (bb *ByteBuffer) Position() int
func (*ByteBuffer) Reset ¶ added in v0.1.8
func (bb *ByteBuffer) Reset()
func (*ByteBuffer) Seek ¶ added in v0.1.8
func (bb *ByteBuffer) Seek(offset int64, whence int) (int64, error)
func (*ByteBuffer) String ¶ added in v0.1.9
func (bb *ByteBuffer) String() string
Click to show internal directories.
Click to hide internal directories.