|
270 | 270 | pos += 1 |
271 | 271 | return pos, T() |
272 | 272 | end |
273 | | - c = TupleClosure(buf, pos, len, b, kw.data) |
| 273 | + c = TupleClosure(buf, pos, len, b, values(kw)) |
274 | 274 | x = StructTypes.construct(c, T) |
275 | 275 |
|
276 | 276 | return c.pos, x |
@@ -381,7 +381,7 @@ mutable struct MutableClosure{T, KW} |
381 | 381 | end |
382 | 382 |
|
383 | 383 | @inline function (f::MutableClosure)(i, nm, TT; kw...) |
384 | | - kw2 = merge(kw.data, f.kw) |
| 384 | + kw2 = merge(values(kw), f.kw) |
385 | 385 | pos_i, y_i = read(StructType(TT), f.buf, f.pos, f.len, f.b, TT; kw2...) |
386 | 386 | f.pos = pos_i |
387 | 387 | return y_i |
|
446 | 446 | @eof |
447 | 447 | b = getbyte(buf, pos) |
448 | 448 | @wh |
449 | | - c = MutableClosure(buf, pos, len, b, kw.data) |
| 449 | + c = MutableClosure(buf, pos, len, b, values(kw)) |
450 | 450 | if StructTypes.applyfield!(c, x, key) |
451 | 451 | pos = c.pos |
452 | 452 | else |
|
490 | 490 | const DEFAULT_STRUCT_FIELD_COUNT = 32 |
491 | 491 |
|
492 | 492 | @inline function (f::StructClosure)(i, nm, TT; kw...) |
493 | | - kw2 = merge(kw.data, f.kw) |
| 493 | + kw2 = merge(values(kw), f.kw) |
494 | 494 | pos_i, y_i = read(StructType(TT), f.buf, f.pos, f.len, f.b, TT; kw2...) |
495 | 495 | f.pos = pos_i |
496 | 496 | if i <= DEFAULT_STRUCT_FIELD_COUNT |
|
551 | 551 | @eof |
552 | 552 | b = getbyte(buf, pos) |
553 | 553 | @wh |
554 | | - c = StructClosure(buf, pos, len, b, values, kw.data) |
| 554 | + c = StructClosure(buf, pos, len, b, values, Base.values(kw)) |
555 | 555 | if StructTypes.applyfield(c, T, key) |
556 | 556 | pos = c.pos |
557 | 557 | else |
|
617 | 617 | end |
618 | 618 | pos += 1 |
619 | 619 | @eof |
620 | | - c = OrderedStructClosure(buf, pos, len, kw.data) |
| 620 | + c = OrderedStructClosure(buf, pos, len, values(kw)) |
621 | 621 | x = StructTypes.construct(c, T) |
622 | 622 | return c.pos, x |
623 | 623 |
|
|
0 commit comments