iterator.go
func (item *Item) ValueSize() int64 {
	if !item.hasValue() {
		return 0
	}
	if (item.meta & bitValuePointer) == 0 {
		return int64(len(item.vptr))
	}
	var vp valuePointer
	vp.Decode(item.vptr)

	klen := int64(len(item.key) + 8) // 8 bytes for timestamp.
	return int64(vp.Len) - klen - headerBufSize - crc32.Size
}
func (item *Item) ValueSize() int64 {
	if !item.hasValue() {
		return 0
	}
	if (item.meta & bitValuePointer) == 0 {
		return int64(len(item.vptr))
	}
	var vp valuePointer
	vp.Decode(item.vptr)

	klen := int64(len(item.key) + 8) // 8 bytes for timestamp.
	return int64(vp.Len) - klen - headerBufSize - crc32.Size
}
func ( item * Item ) ValueSize ( ) int64 { if ! item . hasValue ( ) { return 0 } if ( item . meta & bitValuePointer ) == 0 { return int64 ( len ( item . vptr ) ) } var vp valuePointer vp . Decode ( item . vptr ) klen := int64 ( len ( item . key ) + 8 ) // 8 bytes for timestamp. return int64 ( vp . Len ) - klen - headerBufSize - crc32 . Size }
// ValueSize returns the exact size of the value.
//
// This can be called to quickly estimate the size of a value without fetching
// it.
ValueSize returns the exact size of the value . This can be called to quickly estimate the size of a value without fetching it .