Files
showbridge-go/internal/framer/raw.go
T
2026-05-26 17:27:35 -05:00

24 lines
381 B
Go

package framer
type rawFramer struct{}
func newRawFramer() *rawFramer {
return &rawFramer{}
}
func (rf *rawFramer) Decode(data []byte) [][]byte {
return [][]byte{data}
}
func (rf *rawFramer) Encode(data []byte) []byte {
return data
}
func (rf *rawFramer) Clear() {
// NOTE(jwetzell): no internal state to clear
}
func (rf *rawFramer) Buffer() []byte {
return []byte{}
}