Akka.Streams.Tests.IO.InputStreamSourceSpec.EmittedInputStream.Read C# (CSharp) 메소드

Read() 공개 메소드

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int
            public override int Read(byte[] buffer, int offset, int count)
            {
                if (!_emitted)
                {
                    _emitted = true;
                    buffer[0] = Convert.ToByte('M');
                    return 1;
                }

                _latch.Ready();
                return 0;
            }