/// <summary> /// Saves using the specified writer. /// </summary> /// <param name="writer">The writer.</param> /// <returns>true if successful</returns> public bool Save(IKeySetWriter writer) { writer.Write(_metadata); if (!onlyMetaChanged || writer is INonSeparatedMetadataAndKey) { for (int i = 1; i <= _keys.Count; i++) { var key = _keys[i]; writer.Write(key, i); } } return(writer.Finish()); }
/// <summary> /// Saves using the specified writer. /// </summary> /// <param name="writer">The writer.</param> /// <returns>true if successful</returns> public bool Save(IKeySetWriter writer) { writer.Write(_metadata); if (!onlyMetaChanged || writer is INonSeparatedMetadataAndKey) { for (int i = 1; i <= _keys.Count; i++) { var key = _keys[i]; writer.Write(key, i); } } return writer.Finish(); }
/// <summary> /// Finishes this writing of the key. /// </summary> /// <returns></returns> public bool Finish() => _writer.Finish();
public bool Finish() { return(_writer.Finish()); }