Documentation ¶
Index ¶
- Variables
- func StringToUint16Base10(str string) (num uint16, err protocol.Error)
- func StringToUint32Base10(str string) (num uint32, err protocol.Error)
- func StringToUint64Base10(str string) (num uint64, err protocol.Error)
- func StringToUint8Base10(str string) (num uint8, err protocol.Error)
- func Unsafe16ByteArraySliceToByteSlice(req [][16]byte) (res []byte)
- func Unsafe32ByteArraySliceToByteSlice(req [][32]byte) (res []byte)
- func UnsafeBoolSliceToByteSlice(req []bool) (res []byte)
- func UnsafeByteSliceTo16ByteArraySlice(req []byte) (res [][16]byte)
- func UnsafeByteSliceTo32ByteArraySlice(req []byte) (res [][32]byte)
- func UnsafeByteSliceToBoolSlice(req []byte) (res []bool)
- func UnsafeByteSliceToComplex128Slice(req []byte) (res []complex128)
- func UnsafeByteSliceToComplex64Slice(req []byte) (res []complex64)
- func UnsafeByteSliceToFloat32Slice(req []byte) (res []float32)
- func UnsafeByteSliceToFloat64Slice(req []byte) (res []float64)
- func UnsafeByteSliceToInt16Slice(req []byte) (res []int16)
- func UnsafeByteSliceToInt32Slice(req []byte) (res []int32)
- func UnsafeByteSliceToInt64Slice(req []byte) (res []int64)
- func UnsafeByteSliceToInt8Slice(req []byte) (res []int8)
- func UnsafeByteSliceToString(req []byte) (res string)
- func UnsafeByteSliceToUInt16Slice(req []byte) (res []uint16)
- func UnsafeByteSliceToUInt32Slice(req []byte) (res []uint32)
- func UnsafeByteSliceToUInt64Slice(req []byte) (res []uint64)
- func UnsafeByteSliceToUInt8Slice(req []byte) (res []uint8)
- func UnsafeComplex128SliceToByteSlice(req []complex128) (res []byte)
- func UnsafeComplex64SliceToByteSlice(req []complex64) (res []byte)
- func UnsafeFloat32SliceToByteSlice(req []float32) (res []byte)
- func UnsafeFloat64SliceToByteSlice(req []float64) (res []byte)
- func UnsafeInt16SliceToByteSlice(req []int16) (res []byte)
- func UnsafeInt32SliceToByteSlice(req []int32) (res []byte)
- func UnsafeInt64SliceToByteSlice(req []int64) (res []byte)
- func UnsafeInt8SliceToByteSlice(req []int8) (res []byte)
- func UnsafeStringToByteSlice(req string) (res []byte)
- func UnsafeUInt16SliceToByteSlice(req []uint16) (res []byte)
- func UnsafeUInt32SliceToByteSlice(req []uint32) (res []byte)
- func UnsafeUInt64SliceToByteSlice(req []uint64) (res []byte)
- func UnsafeUInt8SliceToByteSlice(req []uint8) (res []byte)
Constants ¶
This section is empty.
Variables ¶
var ( ErrEmptyValue = er.New("urn:giti:convert.protocol:error:empty-value").SetDetail(protocol.LanguageEnglish, domainEnglish, "Empty Value", "Empty value pass to convert function that it is illegal", "", "").Save() ErrValueOutOfRange = er.New("urn:giti:convert.protocol:error:value out of range").SetDetail(protocol.LanguageEnglish, domainEnglish, "Value Out of Range", "indicates that a value is out of range for the target type, e.g. 270 for uint8", "", "").Save() ErrBadValue = er.New("urn:giti:convert.protocol:error:bad-value").SetDetail(protocol.LanguageEnglish, domainEnglish, "Bad Value", "Bad value pass to convert function that it is illegal e.g. pass '1b2' to convert to number", "", "").Save() )
Errors
Functions ¶
func StringToUint16Base10 ¶
StringToUint16Base10 Parse given string and returns uint16
func StringToUint32Base10 ¶
StringToUint32Base10 Parse given string and returns uint32
func StringToUint64Base10 ¶
StringToUint64Base10 Parse given string and returns uint64
func StringToUint8Base10 ¶
StringToUint8Base10 Parse given string and returns uint8
func Unsafe16ByteArraySliceToByteSlice ¶
Unsafe16ByteArraySliceToByteSlice returns ...
func Unsafe32ByteArraySliceToByteSlice ¶
Unsafe32ByteArraySliceToByteSlice returns ...
func UnsafeBoolSliceToByteSlice ¶
UnsafeBoolSliceToByteSlice returns ...
func UnsafeByteSliceTo16ByteArraySlice ¶
UnsafeByteSliceTo16ByteArraySlice returns ...
func UnsafeByteSliceTo32ByteArraySlice ¶
UnsafeByteSliceTo32ByteArraySlice returns ...
func UnsafeByteSliceToBoolSlice ¶
UnsafeByteSliceToBoolSlice returns ...
func UnsafeByteSliceToComplex128Slice ¶
func UnsafeByteSliceToComplex128Slice(req []byte) (res []complex128)
UnsafeByteSliceToComplex128Slice returns ...
func UnsafeByteSliceToComplex64Slice ¶
UnsafeByteSliceToComplex64Slice returns ...
func UnsafeByteSliceToFloat32Slice ¶
UnsafeByteSliceToFloat32Slice returns ...
func UnsafeByteSliceToFloat64Slice ¶
UnsafeByteSliceToFloat64Slice returns ...
func UnsafeByteSliceToInt16Slice ¶
UnsafeByteSliceToInt16Slice returns ...
func UnsafeByteSliceToInt32Slice ¶
UnsafeByteSliceToInt32Slice returns ...
func UnsafeByteSliceToInt64Slice ¶
UnsafeByteSliceToInt64Slice returns ...
func UnsafeByteSliceToInt8Slice ¶
UnsafeByteSliceToInt8Slice returns ...
func UnsafeByteSliceToString ¶
UnsafeByteSliceToString returns ...
func UnsafeByteSliceToUInt16Slice ¶
UnsafeByteSliceToUInt16Slice returns ...
func UnsafeByteSliceToUInt32Slice ¶
UnsafeByteSliceToUInt32Slice returns ...
func UnsafeByteSliceToUInt64Slice ¶
UnsafeByteSliceToUInt64Slice returns ...
func UnsafeByteSliceToUInt8Slice ¶
UnsafeByteSliceToUInt8Slice returns ...
func UnsafeComplex128SliceToByteSlice ¶
func UnsafeComplex128SliceToByteSlice(req []complex128) (res []byte)
UnsafeComplex128SliceToByteSlice returns ...
func UnsafeComplex64SliceToByteSlice ¶
UnsafeComplex64SliceToByteSlice returns ...
func UnsafeFloat32SliceToByteSlice ¶
UnsafeFloat32SliceToByteSlice returns ...
func UnsafeFloat64SliceToByteSlice ¶
UnsafeFloat64SliceToByteSlice returns ...
func UnsafeInt16SliceToByteSlice ¶
UnsafeInt16SliceToByteSlice returns ...
func UnsafeInt32SliceToByteSlice ¶
UnsafeInt32SliceToByteSlice returns ...
func UnsafeInt64SliceToByteSlice ¶
UnsafeInt64SliceToByteSlice returns ...
func UnsafeInt8SliceToByteSlice ¶
UnsafeInt8SliceToByteSlice returns ...
func UnsafeStringToByteSlice ¶
UnsafeStringToByteSlice returns ...
func UnsafeUInt16SliceToByteSlice ¶
UnsafeUInt16SliceToByteSlice returns ...
func UnsafeUInt32SliceToByteSlice ¶
UnsafeUInt32SliceToByteSlice returns ...
func UnsafeUInt64SliceToByteSlice ¶
UnsafeUInt64SliceToByteSlice returns ...
func UnsafeUInt8SliceToByteSlice ¶
UnsafeUInt8SliceToByteSlice returns ...
Types ¶
This section is empty.