(value: BytesLike)
| 376 | |
| 377 | // Arrayish item; pad on the right to *nearest* WordSize |
| 378 | writeBytes(value: BytesLike): number { |
| 379 | let bytes = getBytesCopy(value); |
| 380 | const paddingOffset = bytes.length % WordSize; |
| 381 | if (paddingOffset) { |
| 382 | bytes = getBytesCopy(concat([ bytes, Padding.slice(paddingOffset) ])) |
| 383 | } |
| 384 | return this.#writeData(bytes); |
| 385 | } |
| 386 | |
| 387 | // Numeric item; pad on the left *to* WordSize |
| 388 | writeValue(value: BigNumberish): number { |
no test coverage detected