SnapshotDescriptor copyTo ( Buffer buffer ) { this . buffer = buffer . writeLong ( index ) . writeLong ( timestamp ) . writeInt ( version ) . writeBoolean ( locked ) . skip ( BYTES - buffer . position ( ) ) . flush ( ) ; return this ; }
Copies the snapshot to a new buffer .