mirror of
https://github.com/MillironX/XAM.jl.git
synced 2024-11-14 14:23:11 +00:00
Ensure fields are empty
This commit is contained in:
parent
89d7e94f77
commit
3e1a802372
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ end
|
||||||
|
|
||||||
function Base.read!(rdr::Reader, rec::Record)
|
function Base.read!(rdr::Reader, rec::Record)
|
||||||
|
|
||||||
|
empty!(rec.fields) #Note: data is pushed to the fields field, and other field data is overwritten. #TODO: distinguish for inplace reading pattern.
|
||||||
|
|
||||||
cs, ln, f = readrecord!(rdr.state.stream, rec, (rdr.state.state, rdr.state.linenum))
|
cs, ln, f = readrecord!(rdr.state.stream, rec, (rdr.state.state, rdr.state.linenum))
|
||||||
|
|
||||||
rdr.state.state = cs
|
rdr.state.state = cs
|
||||||
|
|
Loading…
Reference in a new issue