public async Task <ISafeBytes> DeepCloneAsync() { var clone = new FakeSafeBytes(); foreach (var b in _bytes.ToArray()) { await clone.AppendAsync(b); } return(clone); }
public ISafeBytes DeepClone() { var clone = new FakeSafeBytes(); foreach (var b in _bytes.ToArray()) { clone.Append(b); } return(clone); }