(bytes: Uint8Array, offset: number)
| 1104 | * nonsense time. |
| 1105 | */ |
| 1106 | const readTimeMicros = (bytes: Uint8Array, offset: number): number => { |
| 1107 | const high = readInt32(bytes, offset) |
| 1108 | const micros = high * 4294967296 + readUint32(bytes, offset + 4) |
| 1109 | if (high < 0 || micros > MAX_TIME_MICROS_NUMBER) { |
| 1110 | return fail(`timetz out of range: ${micros}`) |
| 1111 | } |
| 1112 | return micros |
| 1113 | } |
| 1114 | |
| 1115 | let timestampHigh = 0 |
| 1116 | let timestampLow = 0 |
no test coverage detected