Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hex_to_str ¶
func Str_to_hex ¶
Types ¶
type BytesBuffer ¶
func NewBuffer ¶
func NewBuffer(buf []byte) *BytesBuffer
func NewBufferString ¶
func NewBufferString(s string) *BytesBuffer
func (*BytesBuffer) ByteString ¶
func (this *BytesBuffer) ByteString(prefix string) string
1234 + prefix("%") -> %31%32%33%34 1234 + prefix("\x") -> \x31\x32\x33\x34 1234 + prefix("") -> 31323334
func (*BytesBuffer) WriteByteString ¶
func (this *BytesBuffer) WriteByteString(byteStr string) error
\x31\x32\x33\x34 -> 1234 %31%32%33%34 -> 1234 31323334 -> 1234
func (*BytesBuffer) WriteToByteString ¶
Buffer will be empty after Write
Click to show internal directories.
Click to hide internal directories.