-
Notifications
You must be signed in to change notification settings - Fork 38
/
NAS_TAIList.go
54 lines (46 loc) · 1.3 KB
/
NAS_TAIList.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package nasType
// TAIList 9.11.3.9
// PartialTrackingAreaIdentityList Row, sBit, len = [0, 0], 8 , INF
type TAIList struct {
Iei uint8
Len uint8
Buffer []uint8
}
func NewTAIList(iei uint8) (tAIList *TAIList) {
tAIList = &TAIList{}
tAIList.SetIei(iei)
return tAIList
}
// TAIList 9.11.3.9
// Iei Row, sBit, len = [], 8, 8
func (a *TAIList) GetIei() (iei uint8) {
return a.Iei
}
// TAIList 9.11.3.9
// Iei Row, sBit, len = [], 8, 8
func (a *TAIList) SetIei(iei uint8) {
a.Iei = iei
}
// TAIList 9.11.3.9
// Len Row, sBit, len = [], 8, 8
func (a *TAIList) GetLen() (len uint8) {
return a.Len
}
// TAIList 9.11.3.9
// Len Row, sBit, len = [], 8, 8
func (a *TAIList) SetLen(len uint8) {
a.Len = len
a.Buffer = make([]uint8, a.Len)
}
// TAIList 9.11.3.9
// PartialTrackingAreaIdentityList Row, sBit, len = [0, 0], 8 , INF
func (a *TAIList) GetPartialTrackingAreaIdentityList() (partialTrackingAreaIdentityList []uint8) {
partialTrackingAreaIdentityList = make([]uint8, len(a.Buffer))
copy(partialTrackingAreaIdentityList, a.Buffer)
return partialTrackingAreaIdentityList
}
// TAIList 9.11.3.9
// PartialTrackingAreaIdentityList Row, sBit, len = [0, 0], 8 , INF
func (a *TAIList) SetPartialTrackingAreaIdentityList(partialTrackingAreaIdentityList []uint8) {
copy(a.Buffer, partialTrackingAreaIdentityList)
}