Akka.Streams.Tests.IO.InputStreamSourceSpec.ListInputStream.Read C# (CSharp) Method

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int
            public override int Read(byte[] buffer, int offset, int count)
            {
                if (_buf.Count == 0)
                    return 0;

                _buf.CopyTo(buffer);
                _buf = new List<byte>();
                return 3;
            }