added some new API calls

mainly around getting the file size and data read for convenience for
other tools
This commit is contained in:
2026-09-16 23:47:35 +01:00
parent 137b96fae6
commit 312d979be1
9 changed files with 81 additions and 7 deletions
+5 -1
View File
@@ -41,9 +41,13 @@ func (ogr *OgUDPReader) Next(buffer []byte) (int, error) {
}
// Check if enough data was received to fill our struct
if nBytes != outgaugeSize {
if int64(nBytes) != OutgaugeSize {
return 0, ErrInvalidOutgaugeData
}
return nBytes, nil
}
func (ogr *OgUDPReader) GetTotalRead() int64 {
return ogr.udpConnection.GetTotalBytes()
}