func (storage *Storage) Add(data []byte) (id uint64, err error) {
	start := uint64(0)
	length := uint64(0)
	if start, length, err = storage.store.Add(data); nil != err {
		return
	}
	if id, err = storage.link.Add(start, length); nil != err {
		return
	}
	if _, err = storage.meta.Next(length); nil != err {
		return
	}

	return
}
// Add data to storage.
Add data to storage.
// Add data to storage .
func (storage *Storage) Add(data []byte) (id uint64, err error) {
	start := uint64(0)
	length := uint64(0)
	if start, length, err = storage.store.Add(data); nil != err {
		return
	}
	if id, err = storage.link.Add(start, length); nil != err {
		return
	}
	if _, err = storage.meta.Next(length); nil != err {
		return
	}
	return
}
func ( storage * Storage ) Add ( data [ ] byte ) ( id uint64 , err error ) { start := uint64 ( 0 ) length := uint64 ( 0 ) if start , length , err = storage . store . Add ( data ) ; nil != err { return } if id , err = storage . link . Add ( start , length ) ; nil != err { return } if _ , err = storage . meta . Next ( length ) ; nil != err { return } return }
Add data to storage.
Add data to storage .