Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyatt Alt committed Sep 8, 2023
1 parent 05fd586 commit cb07c24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go/mcap/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test:
go test -cover ./...
go test ./...

bench:
go test -benchmem -run=^$$ -count 5 -bench ^BenchmarkLexer/demo -memprofile mem.out -cpuprofile cpu.out
Expand Down
15 changes: 15 additions & 0 deletions go/mcap/resettable.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package mcap

import "io"

// ResettableWriteCloser implements io.WriteCloser and adds a Reset method.
type ResettableWriteCloser interface {
io.WriteCloser
Reset(io.Writer)
}

// ResettableReadCloser implements io.ReadCloser and adds a Reset method.
type ResettableReader interface {
io.Reader
Reset(io.Reader)
}

0 comments on commit cb07c24

Please sign in to comment.