Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePDUs ¶
func EncodePDUs(cfg MessageConfig) ([][]byte, error)
func PackSeptets ¶
func UnpackSeptets ¶
Types ¶
type GSM7 ¶
type GSM7 string
GSM7 is text represented with unpacked GSM 7-bit default-alphabet septets.
func (GSM7) MarshalBinary ¶
MarshalBinary encodes text as unpacked GSM 7-bit default-alphabet septets.
func (GSM7) MarshalText ¶
MarshalText returns the UTF-8 textual form after validating GSM7 support.
func (*GSM7) UnmarshalBinary ¶
UnmarshalBinary decodes unpacked GSM 7-bit default-alphabet septets.
func (*GSM7) UnmarshalText ¶
UnmarshalText decodes UTF-8 text and validates that GSM7 can represent it.
type Message ¶
func Assemble ¶
Assemble combines complete multipart groups and returns single-part messages unchanged. Incomplete groups are omitted.
func CloneMessage ¶
type MessageConfig ¶
type MessageConfig = contract.MessageConfig
type Part ¶
func (*Part) UnmarshalBinary ¶
type UCS2 ¶
type UCS2 string
UCS2 is text represented with big-endian UCS-2 code units.
func (UCS2) MarshalBinary ¶
MarshalBinary encodes text as big-endian UCS-2 code units.
func (UCS2) MarshalText ¶
MarshalText returns the UTF-8 textual form after validating UCS-2 support.
func (*UCS2) UnmarshalBinary ¶
UnmarshalBinary decodes big-endian UCS-2 code units.
func (*UCS2) UnmarshalText ¶
UnmarshalText decodes UTF-8 text and validates that UCS-2 can represent it.
type UCS2LE ¶
type UCS2LE string
UCS2LE is text represented with little-endian UCS-2 code units.
func (UCS2LE) MarshalBinary ¶
MarshalBinary encodes text as little-endian UCS-2 code units.
func (UCS2LE) MarshalText ¶
MarshalText returns the UTF-8 textual form after validating UCS-2 support.
func (*UCS2LE) UnmarshalBinary ¶
UnmarshalBinary decodes little-endian UCS-2 code units.
func (*UCS2LE) UnmarshalText ¶
UnmarshalText decodes UTF-8 text and validates that UCS-2 can represent it.
type UTF16 ¶
type UTF16 string
UTF16 is text represented with big-endian UTF-16 code units.
func (UTF16) MarshalBinary ¶
MarshalBinary encodes text as big-endian UTF-16 code units.
func (UTF16) MarshalText ¶
MarshalText returns the UTF-8 textual form after validating UTF-16 support.
func (*UTF16) UnmarshalBinary ¶
UnmarshalBinary decodes big-endian UTF-16 code units.
func (*UTF16) UnmarshalText ¶
UnmarshalText decodes UTF-8 text and validates that UTF-16 can represent it.
type UTF16LE ¶
type UTF16LE string
UTF16LE is text represented with little-endian UTF-16 code units.
func (UTF16LE) MarshalBinary ¶
MarshalBinary encodes text as little-endian UTF-16 code units.
func (UTF16LE) MarshalText ¶
MarshalText returns the UTF-8 textual form after validating UTF-16 support.
func (*UTF16LE) UnmarshalBinary ¶
UnmarshalBinary decodes little-endian UTF-16 code units.
func (*UTF16LE) UnmarshalText ¶
UnmarshalText decodes UTF-8 text and validates that UTF-16 can represent it.