()
| 352 | } |
| 353 | |
| 354 | func (this *BlocksFile) checkStatus() error { |
| 355 | if this.isClosed || this.isClosing { |
| 356 | return fmt.Errorf("check status failed: %w", ErrClosed) |
| 357 | } |
| 358 | return nil |
| 359 | } |
| 360 | |
| 361 | func (this *BlocksFile) currentPos() (int64, error) { |
| 362 | return this.fp.Seek(0, io.SeekCurrent) |
no test coverage detected