From 5c779c4a33031d0e09c72aa73141ec3874a86ebb Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Wed, 25 Sep 2024 17:00:29 -0600 Subject: [PATCH] Removed BufferedReaderAt --- cursor/helper.go | 26 -------------------------- cursor/helper_test.go | 9 --------- 2 files changed, 35 deletions(-) delete mode 100644 cursor/helper.go delete mode 100644 cursor/helper_test.go diff --git a/cursor/helper.go b/cursor/helper.go deleted file mode 100644 index 80b87b9..0000000 --- a/cursor/helper.go +++ /dev/null @@ -1,26 +0,0 @@ -// SPDX-License-Identifier: Unlicense - -package cursor - -import ( - "io" -) - -// BufferedReaderAt uses a buffer to supplement an io.Reader -// with limited backward seeking. -type BufferedReaderAt struct{} - -func NewBufferedReaderAt(r io.Reader, minBuffer uint64) *BufferedReaderAt { - return nil -} - -// ReadAt reads bytes from the underlying reader. If the offset is after -// the end of the buffer, ReadAt will first read and ignore bytes from the -// underlying reader until it reaches the offset. If the offset is -// before the start of the buffer, ReadAt will return an error. -// -// If your parser needs unlimited lookahead, you should probably -// just read the whole input into a slice and use BytesCursor. -func (b *BufferedReaderAt) ReadAt(dst []byte, offset int64) (int, error) { - return 0, nil -} diff --git a/cursor/helper_test.go b/cursor/helper_test.go deleted file mode 100644 index 3a32af6..0000000 --- a/cursor/helper_test.go +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-License-Identifier: Unlicense - -package cursor_test - -import "testing" - -func TestBufferedReader(t *testing.T) { - Todo(t) -}