{"modulePath":"github.com/xgodev/boost","version":"v1.11.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package binary\n\n## Types\n\n```go\ntype ByteArray interface {\n\t~[]byte // Ensures only []byte is accepted\n}\n```\nDefine a constraint that T must be \\[]byte\n\n```go\ntype Codec[T ByteArray] struct {\n}\n```\n\n```go\nfunc New[T ByteArray]() *Codec[T]\n```\n\n```go\nfunc (c *Codec[T]) Decode(b []byte, data *T) (err error)\n```\n\n```go\nfunc (c *Codec[T]) Encode(e T) (b []byte, err error)\n```\n\n","path":"github.com/xgodev/boost/wrapper/cache/codec/binary","name":"binary","synopsis":"","isRedistributable":true}
