Add coder/decoder size to coder

This commit is contained in:
2024-07-31 13:05:13 +02:00
parent 7001f2c51a
commit d0c868ca5c
4 changed files with 22 additions and 13 deletions

View File

@@ -5,4 +5,6 @@ import "bytes"
type Coder interface {
Encode(s *string, buf *bytes.Buffer) error
Decode(buf *bytes.Buffer) (string, error)
}
EncodesInto(s *string) int
DecodesInto(buf *bytes.Buffer) int
}