simfile

package
v0.0.0-...-ac3d764 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address string

func (Address) MarshalBinary

func (a Address) MarshalBinary() ([]byte, error)

func (Address) MarshalText

func (a Address) MarshalText() ([]byte, error)

func (Address) String

func (a Address) String() string

func (*Address) UnmarshalBinary

func (a *Address) UnmarshalBinary(data []byte) error

func (*Address) UnmarshalText

func (a *Address) UnmarshalText(text []byte) error

type AdministrativeData

type AdministrativeData struct {
	MNCLength int
}

func (*AdministrativeData) UnmarshalBinary

func (ad *AdministrativeData) UnmarshalBinary(data []byte) error

type BCD

type BCD []byte

BCD stores hexadecimal digits with each byte's nibbles swapped. Trailing F nibbles are padding; F digits elsewhere are preserved.

func (BCD) MarshalBinary

func (bcd BCD) MarshalBinary() ([]byte, error)

func (BCD) MarshalText

func (bcd BCD) MarshalText() ([]byte, error)

func (BCD) String

func (bcd BCD) String() string

func (*BCD) UnmarshalBinary

func (bcd *BCD) UnmarshalBinary(data []byte) error

func (*BCD) UnmarshalText

func (bcd *BCD) UnmarshalText(text []byte) error

type EFDirRecord

type EFDirRecord struct {
	AID   []byte
	Label string
}

func (EFDirRecord) MarshalBinary

func (rec EFDirRecord) MarshalBinary() ([]byte, error)

func (*EFDirRecord) UnmarshalBinary

func (rec *EFDirRecord) UnmarshalBinary(data []byte) error

type FCI

type FCI struct {
	FileStructure FileStructure
	FileType      FileType
	RecordSize    uint16
	RecordCount   byte
	FileSize      uint16
}

func (FCI) MarshalBinary

func (f FCI) MarshalBinary() ([]byte, error)

func (*FCI) UnmarshalBinary

func (f *FCI) UnmarshalBinary(data []byte) error

type FileStructure

type FileStructure byte
const (
	StructureTransparent FileStructure = 0x41
	StructureLinearFixed FileStructure = 0x42
)

type FileType

type FileType byte
const (
	FileTypeWorkingEF FileType = 0x21
	FileTypeDFOrADF   FileType = 0x38
)

type ICCID

type ICCID string

func (ICCID) MarshalBinary

func (id ICCID) MarshalBinary() ([]byte, error)

func (ICCID) MarshalText

func (id ICCID) MarshalText() ([]byte, error)

func (ICCID) String

func (id ICCID) String() string

func (*ICCID) UnmarshalBinary

func (id *ICCID) UnmarshalBinary(data []byte) error

func (*ICCID) UnmarshalText

func (id *ICCID) UnmarshalText(text []byte) error

type IMSI

type IMSI struct {
	Digits string
	MCC    string
}

func (IMSI) MarshalBinary

func (i IMSI) MarshalBinary() ([]byte, error)

func (IMSI) MarshalText

func (i IMSI) MarshalText() ([]byte, error)

func (IMSI) String

func (i IMSI) String() string

func (*IMSI) UnmarshalBinary

func (i *IMSI) UnmarshalBinary(data []byte) error

func (*IMSI) UnmarshalText

func (i *IMSI) UnmarshalText(text []byte) error

type SMSC

type SMSC string

func (SMSC) MarshalText

func (s SMSC) MarshalText() ([]byte, error)

func (SMSC) String

func (s SMSC) String() string

func (*SMSC) UnmarshalBinary

func (s *SMSC) UnmarshalBinary(data []byte) error

func (*SMSC) UnmarshalText

func (s *SMSC) UnmarshalText(text []byte) error

type ServiceProviderName

type ServiceProviderName string

func (ServiceProviderName) MarshalText

func (n ServiceProviderName) MarshalText() ([]byte, error)

func (ServiceProviderName) String

func (n ServiceProviderName) String() string

func (*ServiceProviderName) UnmarshalBinary

func (n *ServiceProviderName) UnmarshalBinary(data []byte) error

func (*ServiceProviderName) UnmarshalText

func (n *ServiceProviderName) UnmarshalText(text []byte) error

type Text

type Text string

func (Text) MarshalText

func (t Text) MarshalText() ([]byte, error)

func (Text) String

func (t Text) String() string

func (*Text) UnmarshalBinary

func (t *Text) UnmarshalBinary(data []byte) error

func (*Text) UnmarshalText

func (t *Text) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL