v1.17.6
ADDED: * mapsx.(ListSortedKeys|ListSortedValues|SortedKeys|SortedValues)
This commit is contained in:
16 files changed
+960
-15
No files matched your search
@@ -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 }
|
||||
Reference in new issue
Block a user