package
0.0.0-20190617050638-84d53aaf3fbf
Repository: https://github.com/medibloc/go-medibloc.git
Documentation: pkg.go.dev

# Functions

Bytes2Hex encodes bytes and returns hex string without '0x' prefix.
BytesSlice2HexSlice encodes bytes slice and returns hex string slice without '0x' prefix.
CopyBytes returns a copied clone of the bytes.
Decode decodes []byte from Decoder.
Encode encodes object to Encoder.
Equal checks whether byte slice a and b are equal.
FromHex returns decoded bytes array from hex string.
FromInt16 decodes int16 v.
FromInt32 decodes int32 v.
FromInt64 decodes int64 v.
FromUint16 decodes uint16.
FromUint32 decodes uint32.
FromUint64 decodes unit64 value.
HasHexPrefix checks if hex string has '0x' or '0X' prefix.
Hex2Bytes decodes hex string without '0x' prefix and returns bytes.
HexSlice2BytesSlice decodes hex string slice without '0x' prefix and returns bytes slice.
Int16 encode []byte.
Int32 encodes []byte.
Int64 encodes []byte.
IsHex checks if a string is hex representation.
LeftPadBytes adds padding in left side.
RightPadBytes adds padding in right side.
ToHex returns hex string of bytes.
Uint16 encodes []byte.
Uint32 encodes []byte.
Uint64 encodes []byte.

# Interfaces

Decoder is decoder for byteutils.Decode().
Encoder is encoder for byteutils.Encode().