inmem_snapshot.go
func (s *InmemSnapshotSink) Write(p []byte) (n int, err error) {
	written, err := io.Copy(s.contents, bytes.NewReader(p))
	s.meta.Size += written
	return int(written), err
}
func (s *InmemSnapshotSink) Write(p []byte) (n int, err error) {
	written, err := io.Copy(s.contents, bytes.NewReader(p))
	s.meta.Size += written
	return int(written), err
}
func ( s * InmemSnapshotSink ) Write ( p [ ] byte ) ( n int , err error ) { written , err := io . Copy ( s . contents , bytes . NewReader ( p ) ) s . meta . Size += written return int ( written ) , err }
// Write appends the given bytes to the snapshot contents
Write appends the given bytes to the snapshot contents