(value: bigint)
| 148 | |
| 149 | /** The eight wire bytes of an int64. */ |
| 150 | const int64Bytes = (value: bigint): Uint8Array => { |
| 151 | const wire = new Uint8Array(8) |
| 152 | new DataView(wire.buffer).setBigInt64(0, value) |
| 153 | return wire |
| 154 | } |
| 155 | |
| 156 | /** A `DataRow` frame whose fields are the given bytes; `null` is SQL NULL. */ |
| 157 | const dataRow = (fields: ReadonlyArray<Uint8Array | null>): Uint8Array => { |