func (store *Store) Add(b []byte) (off, length uint64, err error) {

	store.Lock()
	defer store.Unlock()

	var start int64
	if start, err = store.file.Seek(0, 2); nil != err {
		return
	}

	var n int
	if n, err = store.file.Write(b); nil != err {
		return
	}

	off = uint64(start)
	length = uint64(n)
	return
}
// Add an entry in the store.
Add an entry in the store.
// Add an entry in the store .
func (store *Store) Add(b []byte) (off, length uint64, err error) {
	store.Lock()
	defer store.Unlock()
	var start int64
	if start, err = store.file.Seek(0, 2); nil != err {
		return
	}
	var n int
	if n, err = store.file.Write(b); nil != err {
		return
	}
	off = uint64(start)
	length = uint64(n)
	return
}
func ( store * Store ) Add ( b [ ] byte ) ( off , length uint64 , err error ) { store . Lock ( ) defer store . Unlock ( ) var start int64 if start , err = store . file . Seek ( 0 , 2 ) ; nil != err { return } var n int if n , err = store . file . Write ( b ) ; nil != err { return } off = uint64 ( start ) length = uint64 ( n ) return }
Add an entry in the store.
Add an entry in the store .