ADDED:
* mapsx.(ListSortedKeys|ListSortedValues|SortedKeys|SortedValues)
This commit is contained in:
brent saner committed 2026-10-10 01:32:35 -04:00
1 parent 67a5c8a3fb
commit 7ec35990a9
16 files changed
+960 -15

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package binarystr
import (
`fmt`
)
// Error conforms a [BadReadErr] to an [error].
func (b *BadReadErr) Error() (err string) {
err = fmt.Sprintf("only read %d bytes from internal read source before encountering a read error", b.numBytes)
return
}
// NumBytesRead returns the number of bytes read (BEFORE mutation/encoding/decoding) before the error was hit.
func (b *BadReadErr) NumBytesRead() (u64 uint64) { return b.numBytes }