MCPcopy
hub / github.com/etcd-io/bbolt / Size

Method Size

tx.go:81–83  ·  view source on GitHub ↗

Size returns current database size in bytes as seen by this transaction.

()

Source from the content-addressed store, hash-verified

79
80// Size returns current database size in bytes as seen by this transaction.
81func (tx *Tx) Size() int64 {
82 return int64(tx.meta.Pgid()) * int64(tx.db.pageSize)
83}
84
85// Writable returns whether the transaction can perform write operations.
86func (tx *Tx) Writable() bool {

Callers 10

WriteToMethod · 0.95
OpenFunction · 0.80
fileSizeMethod · 0.80
fileSizeFunction · 0.80
copyFileFunction · 0.80
CopyFileFunction · 0.80
readPageFunction · 0.80
RunMethod · 0.80
doPowerFailureFunction · 0.80

Calls 1

PgidMethod · 0.45

Tested by 4

fileSizeFunction · 0.64
copyFileFunction · 0.64
readPageFunction · 0.64
doPowerFailureFunction · 0.64