@@ -84,13 +84,13 @@ const (
84
84
)
85
85
86
86
func encodeNil (b * Buffer ) {
87
- b .grow (nilSize )
87
+ b .Grow (nilSize )
88
88
b .b [b .offset ] = NilRawKind
89
89
b .offset ++
90
90
}
91
91
92
92
func encodeMap (b * Buffer , size uint32 , keyKind Kind , valueKind Kind ) {
93
- b .grow (mapSize )
93
+ b .Grow (mapSize )
94
94
offset := b .offset
95
95
b .b [offset ] = MapRawKind
96
96
offset ++
@@ -144,7 +144,7 @@ func encodeMap(b *Buffer, size uint32, keyKind Kind, valueKind Kind) {
144
144
}
145
145
146
146
func encodeSlice (b * Buffer , size uint32 , kind Kind ) {
147
- b .grow (sliceSize )
147
+ b .Grow (sliceSize )
148
148
offset := b .offset
149
149
b .b [offset ] = SliceRawKind
150
150
offset ++
@@ -196,7 +196,7 @@ func encodeSlice(b *Buffer, size uint32, kind Kind) {
196
196
}
197
197
198
198
func encodeBytes (b * Buffer , value []byte ) {
199
- b .grow (bytesSize + len (value ))
199
+ b .Grow (bytesSize + len (value ))
200
200
castValue := uint32 (len (value ))
201
201
offset := b .offset
202
202
b .b [offset ] = BytesRawKind
@@ -246,7 +246,7 @@ func encodeBytes(b *Buffer, value []byte) {
246
246
b .offset = offset + copy (b .b [offset :], value )
247
247
}
248
248
func encodeString (b * Buffer , value string ) {
249
- b .grow (stringSize + len (value ))
249
+ b .Grow (stringSize + len (value ))
250
250
var nb []byte
251
251
/* #nosec G103 */
252
252
bh := (* reflect .SliceHeader )(unsafe .Pointer (& nb ))
@@ -307,7 +307,7 @@ func encodeString(b *Buffer, value string) {
307
307
308
308
func encodeError (b * Buffer , err error ) {
309
309
errString := err .Error ()
310
- b .grow (errorSize + len (errString ))
310
+ b .Grow (errorSize + len (errString ))
311
311
offset := b .offset
312
312
b .b [offset ] = ErrorRawKind
313
313
offset ++
@@ -371,7 +371,7 @@ func encodeError(b *Buffer, err error) {
371
371
}
372
372
373
373
func encodeBool (b * Buffer , value bool ) {
374
- b .grow (boolSize )
374
+ b .Grow (boolSize )
375
375
offset := b .offset
376
376
b .b [offset ] = BoolRawKind
377
377
offset ++
@@ -384,7 +384,7 @@ func encodeBool(b *Buffer, value bool) {
384
384
}
385
385
386
386
func encodeUint8 (b * Buffer , value uint8 ) {
387
- b .grow (uint8Size )
387
+ b .Grow (uint8Size )
388
388
offset := b .offset
389
389
b .b [offset ] = Uint8RawKind
390
390
offset ++
@@ -393,7 +393,7 @@ func encodeUint8(b *Buffer, value uint8) {
393
393
}
394
394
395
395
func encodeUint16 (b * Buffer , value uint16 ) {
396
- b .grow (uint16Size )
396
+ b .Grow (uint16Size )
397
397
offset := b .offset
398
398
b .b [offset ] = Uint16RawKind
399
399
offset ++
@@ -425,7 +425,7 @@ func encodeUint16(b *Buffer, value uint16) {
425
425
}
426
426
427
427
func encodeUint32 (b * Buffer , value uint32 ) {
428
- b .grow (uint32Size )
428
+ b .Grow (uint32Size )
429
429
offset := b .offset
430
430
b .b [offset ] = Uint32RawKind
431
431
offset ++
@@ -473,7 +473,7 @@ func encodeUint32(b *Buffer, value uint32) {
473
473
}
474
474
475
475
func encodeUint64 (b * Buffer , value uint64 ) {
476
- b .grow (uint64Size )
476
+ b .Grow (uint64Size )
477
477
offset := b .offset
478
478
b .b [offset ] = Uint64RawKind
479
479
offset ++
@@ -553,7 +553,7 @@ func encodeUint64(b *Buffer, value uint64) {
553
553
}
554
554
555
555
func encodeInt32 (b * Buffer , value int32 ) {
556
- b .grow (uint32Size )
556
+ b .Grow (uint32Size )
557
557
castValue := uint32 (value ) << 1
558
558
if value < 0 {
559
559
castValue = ^ castValue
@@ -605,7 +605,7 @@ func encodeInt32(b *Buffer, value int32) {
605
605
}
606
606
607
607
func encodeInt64 (b * Buffer , value int64 ) {
608
- b .grow (uint64Size )
608
+ b .Grow (uint64Size )
609
609
castValue := uint64 (value ) << 1
610
610
if value < 0 {
611
611
castValue = ^ castValue
@@ -689,7 +689,7 @@ func encodeInt64(b *Buffer, value int64) {
689
689
}
690
690
691
691
func encodeFloat32 (b * Buffer , value float32 ) {
692
- b .grow (float32Size )
692
+ b .Grow (float32Size )
693
693
offset := b .offset
694
694
b .b [offset ] = Float32RawKind
695
695
offset ++
@@ -705,7 +705,7 @@ func encodeFloat32(b *Buffer, value float32) {
705
705
}
706
706
707
707
func encodeFloat64 (b * Buffer , value float64 ) {
708
- b .grow (float64Size )
708
+ b .Grow (float64Size )
709
709
offset := b .offset
710
710
b .b [offset ] = Float64RawKind
711
711
offset ++
0 commit comments