(data: Uint8Array)
| 30 | } |
| 31 | |
| 32 | public static fromBuffer(data: Uint8Array): ByteBuffer { |
| 33 | const buffer: ByteBuffer = new ByteBuffer(); |
| 34 | buffer._buffer = data; |
| 35 | buffer.length = data.length; |
| 36 | return buffer; |
| 37 | } |
| 38 | |
| 39 | public static fromString(contents: string): ByteBuffer { |
| 40 | const byteArray: Uint8Array = IOHelper.stringToBytes(contents); |
no outgoing calls