()
| 52 | } |
| 53 | |
| 54 | func (t *stringTable) encode() []byte { |
| 55 | result := make([]byte, 0, t.encodedLength()) |
| 56 | result = appendUint32s(result, t.offsets...) |
| 57 | result = append(result, t.fileText...) |
| 58 | result = append(result, t.otherStrings.String()...) |
| 59 | return result |
| 60 | } |
| 61 | |
| 62 | func (t *stringTable) stringLength() int { |
| 63 | return len(t.fileText) + t.otherStrings.Len() |
no test coverage detected