MCPcopy Create free account
hub / github.com/IBM/sarama / Encode

Method Encode

utils.go:78–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76type StringEncoder string
77
78func (s StringEncoder) Encode() ([]byte, error) {
79 return []byte(s), nil
80}
81
82func (s StringEncoder) Length() int {
83 return len(s)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected