(self: MutableBytes, byteLength: number)
| 143 | }; |
| 144 | |
| 145 | export const require = (self: MutableBytes, byteLength: number) => { |
| 146 | allocate(self, requiredCapacity(self, byteLength)); |
| 147 | |
| 148 | const impl = self as MutableBytesImpl; |
| 149 | |
| 150 | impl.length = byteLength; |
| 151 | |
| 152 | return self; |
| 153 | }; |
| 154 | |
| 155 | export const asBuffer = (self: MutableBytes) => { |
| 156 | const impl = self as MutableBytesImpl; |
no test coverage detected