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

Method String

protocol/nbt/staticReader.go:156–172  ·  view source on GitHub ↗
(dst *string)

Source from the content-addressed store, hash-verified

154}
155
156func (r StaticReader) String(dst *string) (string, error) {
157 typeId, err := r.readByte()
158 if err != nil {
159 return "", err
160 }
161 if typeId != String {
162 return "", fmt.Errorf("tried reading TAG_String, got %d", typeId)
163 }
164
165 name, err := r.readString()
166 if err != nil {
167 return "", err
168 }
169
170 *dst, err = r.readString()
171 return name, err
172}
173
174func (r StaticReader) Compound(dst *CompoundReader) (string, error, bool) {
175 typeId, err := r.readByte()

Callers 13

encodeCompoundStructMethod · 0.45
encodeCompoundMapMethod · 0.45
encodeListMethod · 0.45
readStringMethod · 0.45
readStringNonCopyMethod · 0.45
readBytesStringMethod · 0.45
nameMethod · 0.45
tagMethod · 0.45
handleNewConnectionMethod · 0.45
FormatSizeUnitFunction · 0.45
FormatAddrFunction · 0.45
SprintTextFunction · 0.45

Calls 2

readByteMethod · 0.95
readStringMethod · 0.95

Tested by

no test coverage detected