MSP-8172 Add vendor

This commit is contained in:
Синельник Тимур Романович committed 2026-07-29 12:52:27 +03:00
1 parent 5175d87e08
commit eb066cb055
2619 files changed
+757077 -2

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
package codec
import "io"
type Codec interface {
Type() string
EncodeBytes(b []byte) ([]byte, error)
DecodeBytes(b []byte) ([]byte, error)
Encode(w io.Writer) (io.WriteCloser, error)
Decode(rc io.ReadCloser) (io.ReadCloser, error)
}
type decoder interface {
io.Reader
Reset(r io.Reader) error
}
type encoder interface {
io.Writer
Close() error
Reset(w io.Writer)
}
type putter interface {
Put(x any)
}