From e344b5973a6f8ea33d013df3f4418b4fba6138d4 Mon Sep 17 00:00:00 2001 From: milarin Date: Fri, 14 Jul 2023 18:36:14 +0200 Subject: [PATCH] implemented Buffered method --- reader.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reader.go b/reader.go index 130c653..04cde7b 100644 --- a/reader.go +++ b/reader.go @@ -47,6 +47,10 @@ func (r *Reader) Rune() (rune, error) { return rn, err } +func (r *Reader) Buffered() int { + return r.src.Buffered() +} + // PeekRune returns the next rune in r without advancing reader position. // The next read will return the same rune again. func (r *Reader) PeekRune() (rune, error) {