(source *common.ZeroCopySource)
| 99 | return data, nil |
| 100 | } |
| 101 | func DecodeString(source *common.ZeroCopySource) (string, error) { |
| 102 | data, _, irregular, eof := source.NextString() |
| 103 | if eof { |
| 104 | return "", io.ErrUnexpectedEOF |
| 105 | } |
| 106 | if irregular { |
| 107 | return "", common.ErrIrregularData |
| 108 | } |
| 109 | |
| 110 | return data, nil |
| 111 | } |
no test coverage detected