Scorpio.Util.ReadString C# (CSharp) Method

ReadString() public static method

public static ReadString ( BinaryReader reader ) : string
reader BinaryReader
return string
        public static string ReadString(BinaryReader reader)
        {
            List<byte> sb = new List<byte>();
            byte ch;
            while ((ch = reader.ReadByte()) != 0)
                sb.Add(ch);
            byte[] buffer = sb.ToArray();
            return Encoding.UTF8.GetString(buffer, 0, buffer.Length);
        }
        public static bool IsNullOrEmpty(String str)