(str: string)
| 175 | } |
| 176 | |
| 177 | public static stringToBytes(str: string): Uint8Array { |
| 178 | const decoder: TextEncoder = new TextEncoder(); |
| 179 | return decoder.encode(str); |
| 180 | } |
| 181 | |
| 182 | public static writeInt32BE(o: IWriteable, v: number) { |
| 183 | o.writeByte((v >> 24) & 0xff); |
no test coverage detected