GameRevision.GW2Emu.Common.Serialization.Deserializer.ReadVarbyte C# (CSharp) Method

ReadVarbyte() public method

public ReadVarbyte ( int count ) : long
count int
return long
        public long ReadVarbyte(int count)
        {
            List<byte> buffer = new List<byte>();
            buffer.AddRange(ReadBytes(count));
            buffer.AddRange(new byte[8 - buffer.Count]);
            return BitConverter.ToInt64(buffer.ToArray(), 0);
        }