tape: Add tag functions to the encoder
This commit is contained in:
@@ -129,3 +129,8 @@ func (this *Encoder) WriteFloat32(value float32) (n int, err error) {
|
||||
func (this *Encoder) WriteFloat64(value float64) (n int, err error) {
|
||||
return this.WriteUint64(math.Float64bits(value))
|
||||
}
|
||||
|
||||
// WriteTag encodes a [Tag] to the output writer.
|
||||
func (this *Encoder) WriteTag(value Tag) (n int, err error) {
|
||||
return this.WriteUint8(uint8(value))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user