MCPcopy Index your code
hub / github.com/HDT3213/rdb / writeSimpleString

Method writeSimpleString

core/string.go:221–227  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

219}
220
221func (enc *Encoder) writeSimpleString(s string) error {
222 err := enc.writeLength(uint64(len(s)))
223 if err != nil {
224 return err
225 }
226 return enc.write([]byte(s))
227}
228
229func (enc *Encoder) tryWriteIntString(s string) (bool, error) {
230 intVal, ok := isEncodableUint32(s)

Callers 2

writeStringMethod · 0.95
writeNanStringMethod · 0.95

Calls 2

writeLengthMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected