コード例 #1
0
ファイル: ProtoReader.cs プロジェクト: unseen-code/tianqi_src
 public static string DirectReadString(Stream source, int length)
 {
     byte[] array = new byte[length];
     ProtoReader.DirectReadBytes(source, array, 0, length);
     return(Encoding.get_UTF8().GetString(array, 0, length));
 }
コード例 #2
0
ファイル: ProtoReader.cs プロジェクト: unseen-code/tianqi_src
 public static byte[] DirectReadBytes(Stream source, int count)
 {
     byte[] array = new byte[count];
     ProtoReader.DirectReadBytes(source, array, 0, count);
     return(array);
 }