58556d7281
ADDED: * netx.IsPub * encodingx/hexx Rest are mostly small corrections and docs
31 lines
675 B
Go
31 lines
675 B
Go
package hexx
|
|
|
|
import (
|
|
`io`
|
|
)
|
|
|
|
/*
|
|
HexString returns a custom-formatted hex representation of b.
|
|
*/
|
|
func HexString(b []byte, opts ...hexStrFmtrOpt) (out string) {
|
|
|
|
// TODO
|
|
|
|
return
|
|
}
|
|
|
|
/*
|
|
HexStringStream encodes a stream read from r and written into w.
|
|
|
|
HexStringStream will return cleanly if r returns no more bytes or if an [io.EOF] is encountered (the [io.EOF] will not be returned).
|
|
Any other error will immediately halt reading/writing and will b returned in err.
|
|
|
|
If w is of a fixed capacity, it must be at least 2x the size of r's capacity.
|
|
*/
|
|
func HexStringStream(r io.Reader, w io.Writer, opts ...hexStrFmtrOpt) (read, wrtn uint64, err error) {
|
|
|
|
// TODO
|
|
|
|
return
|
|
}
|