(withName bool)
| 70 | } |
| 71 | |
| 72 | func (r StaticReader) ReadRoot(withName bool) (typeId byte, name string, err error) { |
| 73 | typeId, err = r.readByte() |
| 74 | if err != nil { |
| 75 | return typeId, "", err |
| 76 | } |
| 77 | if withName { |
| 78 | name, err = r.readString() |
| 79 | } |
| 80 | |
| 81 | return |
| 82 | } |
| 83 | |
| 84 | func (r StaticReader) Byte(dst *byte) (string, error) { |
| 85 | typeId, err := r.readByte() |
nothing calls this directly
no test coverage detected