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

Method Copy

tx.go:384–387  ·  view source on GitHub ↗

Copy writes the entire database to a writer. This function exists for backwards compatibility. Deprecated: Use WriteTo() instead.

(w io.Writer)

Source from the content-addressed store, hash-verified

382//
383// Deprecated: Use WriteTo() instead.
384func (tx *Tx) Copy(w io.Writer) error {
385 _, err := tx.WriteTo(w)
386 return err
387}
388
389// WriteTo writes the entire database to a writer.
390// If err == nil then exactly tx.Size() bytes will be written into the writer.

Callers 4

initMethod · 0.45
copyFileFunction · 0.45

Calls 1

WriteToMethod · 0.95

Tested by 3

copyFileFunction · 0.36