* Return serialized String as array * * @returns {Uint8Array} serialized String *
()
| 61 | * |
| 62 | */ |
| 63 | buffer() { |
| 64 | let lBytes = new integer.Integer(this.str.length).marshal(), |
| 65 | buf = new Uint8Array(lBytes.length + this.str.length); |
| 66 | |
| 67 | buf.set(lBytes, 0); |
| 68 | buf.set(this.str, lBytes.length); |
| 69 | |
| 70 | return buf; |
| 71 | } |
| 72 | } |
no test coverage detected