MCPcopy Create free account
hub / github.com/cockroachdb/apd / Size

Method Size

decimal.go:762–764  ·  view source on GitHub ↗

Size returns the total memory footprint of d in bytes.

()

Source from the content-addressed store, hash-verified

760
761// Size returns the total memory footprint of d in bytes.
762func (d *Decimal) Size() uintptr {
763 return decimalSize - bigIntSize + d.Coeff.Size()
764}
765
766// Value implements the database/sql/driver.Valuer interface. It converts d to a
767// string.

Callers 1

TestSizeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestSizeFunction · 0.76