AsmResolver.MemoryStreamReader.ReadBytesUntil C# (CSharp) 메소드

ReadBytesUntil() 공개 메소드

public ReadBytesUntil ( byte value ) : byte[]
value byte
리턴 byte[]
        public byte[] ReadBytesUntil(byte value)
        {
            var index = Array.IndexOf(_data, value, _position);
            if (index == -1)
            {
                Position = Length;
                throw new EndOfStreamException();
            }
            return ReadBytes(index - _position);
        }