for regular files this is just Size for circular files this is min(Size, MaxSize)
()
| 67 | // for regular files this is just Size |
| 68 | // for circular files this is min(Size, MaxSize) |
| 69 | func (f WaveFile) DataLength() int64 { |
| 70 | if f.Opts.Circular { |
| 71 | return minInt64(f.Size, f.Opts.MaxSize) |
| 72 | } |
| 73 | return f.Size |
| 74 | } |
| 75 | |
| 76 | // for regular files this is just 0 |
| 77 | // for circular files this is the index of the first byte of data we have |
no test coverage detected