This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfunc_info_autogen.go
110 lines (103 loc) · 2.18 KB
/
func_info_autogen.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// This file is automatically generated. DO NOT MODIFY!
package lumina
func (this *FuncInfo) readFrom(r Reader) (err error) {
// Field this.Name
// Basic string
if this.Name, err = readString(r); err != nil {
return
}
// Field this.Size
// Basic uint32
if this.Size, err = readUint32(r); err != nil {
return
}
// Field this.Metadata
// Slice []byte
var v1 uint32
if v1, err = readUint32(r); err != nil {
return
}
this.Metadata = make([]byte, v1)
if err = readBytes(r, this.Metadata); err != nil {
return
}
return
}
func (this *FuncInfo) writeTo(w Writer) (err error) {
// Field this.Name
// Basic string
if err = writeString(w, this.Name); err != nil {
return
}
// Field this.Size
// Basic uint32
if err = writeUint32(w, this.Size); err != nil {
return
}
// Field this.Metadata
// Slice []byte
if len(this.Metadata) > 0x7FFFFFFF {
err = errTooLong
return
}
var v1 = uint32(len(this.Metadata))
if err = writeUint32(w, v1); err != nil {
return
}
if err = writeBytes(w, this.Metadata); err != nil {
return
}
return
}
func (this *FuncInfoAndFrequency) readFrom(r Reader) (err error) {
// Field this.FuncInfo
// Struct FuncInfo
if err = this.FuncInfo.readFrom(r); err != nil {
return
}
// Field this.Frequency
// Basic uint32
if this.Frequency, err = readUint32(r); err != nil {
return
}
return
}
func (this *FuncInfoAndFrequency) writeTo(w Writer) (err error) {
// Field this.FuncInfo
// Struct FuncInfo
if err = this.FuncInfo.writeTo(w); err != nil {
return
}
// Field this.Frequency
// Basic uint32
if err = writeUint32(w, this.Frequency); err != nil {
return
}
return
}
func (this *FuncInfoAndPattern) readFrom(r Reader) (err error) {
// Field this.FuncInfo
// Struct FuncInfo
if err = this.FuncInfo.readFrom(r); err != nil {
return
}
// Field this.PatternId
// Struct PatternId
if err = this.PatternId.readFrom(r); err != nil {
return
}
return
}
func (this *FuncInfoAndPattern) writeTo(w Writer) (err error) {
// Field this.FuncInfo
// Struct FuncInfo
if err = this.FuncInfo.writeTo(w); err != nil {
return
}
// Field this.PatternId
// Struct PatternId
if err = this.PatternId.writeTo(w); err != nil {
return
}
return
}