github.com/balzaczyy/golucene@v0.0.0-20151210033525-d0be9ee89713/core/util/accountable.go (about)

     1  package util
     2  
     3  /* An object whose RAM usage can be computed. */
     4  type Accountable interface {
     5  	// Return the memory usage of this object in bytes. Negative values are illegal.
     6  	RamBytesUsed() int64
     7  }