Documentation ¶
Overview ¶
Package pc provides Point Code converting from some variants and translation to IP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PointCode ¶
type PointCode struct {
// contains filtered or unexported fields
}
PointCode represents a Signaling Point Code with its variant.
func NewPointCode ¶
NewPointCode creates a new PointCode from raw(uint32) value.
func NewPointCodeFrom ¶
NewPointCodeFrom creates a new PointCode from formatted Signaling Point Code.
func (*PointCode) ConvertTo ¶
ConvertTo converts raw Signaling Point Code into specified Variant and returns converted PC value in string. The converted value is stored in PointCode and can be retrieved with String() without re-calculation.
type Variant ¶
type Variant string
Variant is a variant of Signaling Point Code represented in string.
const ( VariantNone Variant = "" Variant383 Variant = "3-8-3" // ITU Variant437 Variant = "4-3-7" // ITU Variant4343 Variant = "4-3-4-3" // ITU Variant446 Variant = "4-4-6" // ?? Variant545 Variant = "5-4-5" // ?? Variant662 Variant = "6-6-2" // ?? Variant68 Variant = "6-8" // ?? Variant745 Variant = "7-4-5" // Japan Variant77 Variant = "7-7" // ?? Variant888 Variant = "8-8-8" // ANSI & China )
PointCode variant definitions.
Click to show internal directories.
Click to hide internal directories.