public async Task <ISafeBytes> DeepCloneAsync()
            {
                var clone = new FakeSafeBytes();

                foreach (var b in _bytes.ToArray())
                {
                    await clone.AppendAsync(b);
                }
                return(clone);
            }
Beispiel #2
0
            public ISafeBytes DeepClone()
            {
                var clone = new FakeSafeBytes();

                foreach (var b in _bytes.ToArray())
                {
                    clone.Append(b);
                }
                return(clone);
            }