diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-02-16 06:10:47 +0100 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-02-16 06:10:47 +0100 |
| commit | 6f612c117d33c383d2ac37d258c3d90f10717998 (patch) | |
| tree | a39da11df22ac2cdba3d5cdee2048aee8be12192 | |
| parent | facc870d1dfbe59867e48da07a5b88c42571ed1d (diff) | |
| download | mp4-6f612c117d33c383d2ac37d258c3d90f10717998.tar.gz mp4-6f612c117d33c383d2ac37d258c3d90f10717998.zip | |
Update Reset method to clear error state in writer
| -rw-r--r-- | writer.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -81,10 +81,11 @@ func (w *Writer) putFixedString(s string, length int) { w.pos += length } -// Reset resets the writer position to 0. +// Reset resets the writer position to 0 and clears any error state. func (w *Writer) Reset() { w.pos = 0 w.depth = 0 + w.err = nil } // StartBox begins a new box. Write content, then call EndBox. |
