| ... | @@ -408,3 +408,9 @@ pub fn skipToBoundary(pos: u64, boundary: u64, reader: anytype) !void { | ... | @@ -408,3 +408,9 @@ pub fn skipToBoundary(pos: u64, boundary: u64, reader: anytype) !void { |
| 408 | const b = boundary; | 408 | const b = boundary; |
| 409 | try reader.skipBytes(((a + (b - 1)) & ~(b - 1)) - a, .{}); | 409 | try reader.skipBytes(((a + (b - 1)) & ~(b - 1)) - a, .{}); |
| 410 | } | 410 | } |
| | 411 | |
| | 412 | /// ?A == A fails |
| | 413 | /// ?A == @as(?A, b) works |
| | 414 | pub fn is(a: anytype, b: @TypeOf(a)) bool { |
| | 415 | return a == b; |
| | 416 | } |