@@ -8,28 +8,28 @@ import (
8
8
)
9
9
10
10
func fillSearch (enc * Encoder , spaceNo , indexNo uint32 , key interface {}) error {
11
- enc .EncodeUint (KeySpaceNo )
12
- enc .EncodeUint ( uint (spaceNo ))
13
- enc .EncodeUint (KeyIndexNo )
14
- enc .EncodeUint ( uint (indexNo ))
15
- enc .EncodeUint (KeyKey )
11
+ enc .encodeUintImpl (KeySpaceNo )
12
+ enc .encodeUintImpl ( uint64 (spaceNo ))
13
+ enc .encodeUintImpl (KeyIndexNo )
14
+ enc .encodeUintImpl ( uint64 (indexNo ))
15
+ enc .encodeUintImpl (KeyKey )
16
16
return enc .Encode (key )
17
17
}
18
18
19
19
func fillIterator (enc * Encoder , offset , limit , iterator uint32 ) {
20
- enc .EncodeUint (KeyIterator )
21
- enc .EncodeUint ( uint (iterator ))
22
- enc .EncodeUint (KeyOffset )
23
- enc .EncodeUint ( uint (offset ))
24
- enc .EncodeUint (KeyLimit )
25
- enc .EncodeUint ( uint (limit ))
20
+ enc .encodeUintImpl (KeyIterator )
21
+ enc .encodeUintImpl ( uint64 (iterator ))
22
+ enc .encodeUintImpl (KeyOffset )
23
+ enc .encodeUintImpl ( uint64 (offset ))
24
+ enc .encodeUintImpl (KeyLimit )
25
+ enc .encodeUintImpl ( uint64 (limit ))
26
26
}
27
27
28
28
func fillInsert (enc * Encoder , spaceNo uint32 , tuple interface {}) error {
29
29
enc .EncodeMapLen (2 )
30
- enc .EncodeUint (KeySpaceNo )
31
- enc .EncodeUint ( uint (spaceNo ))
32
- enc .EncodeUint (KeyTuple )
30
+ enc .encodeUintImpl (KeySpaceNo )
31
+ enc .encodeUintImpl ( uint64 (spaceNo ))
32
+ enc .encodeUintImpl (KeyTuple )
33
33
return enc .Encode (tuple )
34
34
}
35
35
@@ -44,19 +44,19 @@ func fillUpdate(enc *Encoder, spaceNo, indexNo uint32, key, ops interface{}) err
44
44
if err := fillSearch (enc , spaceNo , indexNo , key ); err != nil {
45
45
return err
46
46
}
47
- enc .EncodeUint (KeyTuple )
47
+ enc .encodeUintImpl (KeyTuple )
48
48
return enc .Encode (ops )
49
49
}
50
50
51
51
func fillUpsert (enc * Encoder , spaceNo uint32 , tuple , ops interface {}) error {
52
52
enc .EncodeMapLen (3 )
53
- enc .EncodeUint (KeySpaceNo )
54
- enc .EncodeUint ( uint (spaceNo ))
55
- enc .EncodeUint (KeyTuple )
53
+ enc .encodeUintImpl (KeySpaceNo )
54
+ enc .encodeUintImpl ( uint64 (spaceNo ))
55
+ enc .encodeUintImpl (KeyTuple )
56
56
if err := enc .Encode (tuple ); err != nil {
57
57
return err
58
58
}
59
- enc .EncodeUint (KeyDefTuple )
59
+ enc .encodeUintImpl (KeyDefTuple )
60
60
return enc .Encode (ops )
61
61
}
62
62
@@ -67,25 +67,25 @@ func fillDelete(enc *Encoder, spaceNo, indexNo uint32, key interface{}) error {
67
67
68
68
func fillCall (enc * Encoder , functionName string , args interface {}) error {
69
69
enc .EncodeMapLen (2 )
70
- enc .EncodeUint (KeyFunctionName )
70
+ enc .encodeUintImpl (KeyFunctionName )
71
71
enc .EncodeString (functionName )
72
- enc .EncodeUint (KeyTuple )
72
+ enc .encodeUintImpl (KeyTuple )
73
73
return enc .Encode (args )
74
74
}
75
75
76
76
func fillEval (enc * Encoder , expr string , args interface {}) error {
77
77
enc .EncodeMapLen (2 )
78
- enc .EncodeUint (KeyExpression )
78
+ enc .encodeUintImpl (KeyExpression )
79
79
enc .EncodeString (expr )
80
- enc .EncodeUint (KeyTuple )
80
+ enc .encodeUintImpl (KeyTuple )
81
81
return enc .Encode (args )
82
82
}
83
83
84
84
func fillExecute (enc * Encoder , expr string , args interface {}) error {
85
85
enc .EncodeMapLen (2 )
86
- enc .EncodeUint (KeySQLText )
86
+ enc .encodeUintImpl (KeySQLText )
87
87
enc .EncodeString (expr )
88
- enc .EncodeUint (KeySQLBind )
88
+ enc .encodeUintImpl (KeySQLBind )
89
89
return encodeSQLBind (enc , args )
90
90
}
91
91
0 commit comments