(value)
| 306 | } |
| 307 | // Arrayish item; pad on the right to *nearest* WordSize |
| 308 | writeBytes(value) { |
| 309 | let bytes = getBytesCopy(value); |
| 310 | const paddingOffset = bytes.length % WordSize; |
| 311 | if (paddingOffset) { |
| 312 | bytes = getBytesCopy(concat([bytes, Padding.slice(paddingOffset)])); |
| 313 | } |
| 314 | return this.#writeData(bytes); |
| 315 | } |
| 316 | // Numeric item; pad on the left *to* WordSize |
| 317 | writeValue(value) { |
| 318 | return this.#writeData(getValue(value)); |
no test coverage detected