mirror of
https://github.com/fumiama/go-base16384.git
synced 2026-06-08 20:10:32 +08:00
优化 api
This commit is contained in:
@@ -3,6 +3,10 @@ base16384 interface of golang
|
||||
|
||||
## Functions
|
||||
|
||||
### func EncodeString(b string) []byte
|
||||
Encode string b to utf16be.
|
||||
### func DecodeString(d []byte) string
|
||||
Decode to string from encoded b.
|
||||
### func Encode(b []byte) []byte
|
||||
Encode b to utf16be.
|
||||
### func Decode(b []byte) []byte
|
||||
@@ -11,8 +15,6 @@ Decode from encoded b.
|
||||
Display the result.
|
||||
### func UTF82utf16be(b []byte) ([]byte, error)
|
||||
Turn the result to its original coding form to decode.
|
||||
### func Free(b []byte)
|
||||
Free memory allocated by encode / decode.
|
||||
|
||||
# Usage
|
||||
## As package
|
||||
|
||||
Reference in New Issue
Block a user