tape: Add tag functions to the encoder

This commit is contained in:
2025-06-21 19:26:15 -04:00
parent 663cab6b77
commit 7b8240cec6
2 changed files with 12 additions and 0 deletions

View File

@@ -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))
}