(capacity: number)
| 24 | } |
| 25 | |
| 26 | public static withCapacity(capacity: number): ByteBuffer { |
| 27 | const buffer: ByteBuffer = new ByteBuffer(); |
| 28 | buffer._buffer = new Uint8Array(capacity); |
| 29 | return buffer; |
| 30 | } |
| 31 | |
| 32 | public static fromBuffer(data: Uint8Array): ByteBuffer { |
| 33 | const buffer: ByteBuffer = new ByteBuffer(); |
no outgoing calls
no test coverage detected