MCPcopy Create free account
hub / github.com/segmentio/encoding / WriteString

Method WriteString

thrift/binary.go:271–276  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

269}
270
271func (w *binaryWriter) WriteString(v string) error {
272 if err := w.WriteLength(len(v)); err != nil {
273 return err
274 }
275 return w.writeString(v)
276}
277
278func (w *binaryWriter) WriteLength(n int) error {
279 if n < 0 {

Callers 1

WriteMessageMethod · 0.95

Calls 2

WriteLengthMethod · 0.95
writeStringMethod · 0.95

Tested by

no test coverage detected