You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
339 B
26 lines
339 B
3 years ago
|
package jx
|
||
|
|
||
|
// Int encodes int.
|
||
|
func (e *Encoder) Int(v int) {
|
||
|
e.comma()
|
||
|
e.w.Int(v)
|
||
|
}
|
||
|
|
||
|
// UInt encodes uint.
|
||
|
func (e *Encoder) UInt(v uint) {
|
||
|
e.comma()
|
||
|
e.w.UInt(v)
|
||
|
}
|
||
|
|
||
|
// UInt8 encodes uint8.
|
||
|
func (e *Encoder) UInt8(v uint8) {
|
||
|
e.comma()
|
||
|
e.w.UInt8(v)
|
||
|
}
|
||
|
|
||
|
// Int8 encodes int8.
|
||
|
func (e *Encoder) Int8(v int8) {
|
||
|
e.comma()
|
||
|
e.w.Int8(v)
|
||
|
}
|