github.com/jackc/pgx/v5/internal/pgio.Reader.Remaining (method)
8 uses
github.com/jackc/pgx/v5/internal/pgio (current package)
read.go#L66: func (r *Reader) Remaining() int {
read.go#L168: if count > r.Remaining()/minElemSize {
read.go#L169: r.fail(fmt.Errorf("element count %d at offset %d exceeds %d remaining bytes", count, offset, r.Remaining()))
github.com/jackc/pgx/v5/pgtype
array_codec.go#L285: if maxElements := r.Remaining() / 4; elementCount > maxElements {
array_codec.go#L286: return fmt.Errorf("array claims %d elements but only %d bytes remain", elementCount, r.Remaining())
composite.go#L316: if cfs.r.Remaining() == 0 {
numeric.go#L242: digits := min(digitsLeft, r.Remaining()/2, 4)
numeric.go#L704: if r.Remaining() < int(ndigits)*2 {
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)