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 provides abstractions and implementations for payload
// encoding and decoding.
//
// The package defines common interfaces for streaming and byte-based codecs
// that can be used by transports such as HTTP, gRPC, and AMQP. It also
// provides a reusable Zstandard (zstd) implementation with encoder pooling
// for efficient compression.
//
// Codecs support both streaming APIs (io.Reader/io.Writer) and in-memory
// byte slice operations, allowing the same implementation to be reused
// across different transports and middleware.
//
// Example usage:
//
// codec := codec.Default
//
// // Encode bytes.
// encoded, err := codec.EncodeBytes(data)
// if err != nil {
// log.Fatal(err)
// }
//
// // Decode bytes.
// plain, err := codec.DecodeBytes(encoded)
// if err != nil {
// log.Fatal(err)
// }
package codec