MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / AppendString

Function AppendString

protocol/net/io/encoding/encoding.go:147–151  ·  view source on GitHub ↗
(data []byte, str string)

Source from the content-addressed store, hash-verified

145}
146
147func AppendString(data []byte, str string) []byte {
148 data = AppendVarInt(data, int32(len(str)))
149
150 return append(data, str...)
151}
152
153func String(data []byte) (string, error) {
154 l, strd, err := VarInt(data)

Callers 1

finishConfigurationMethod · 0.92

Calls 1

AppendVarIntFunction · 0.85

Tested by

no test coverage detected