public static string ReadString() { if (readStringAmount == 0) { readStringAmount = rbytes[curReadIndex++]; } if (curReadIndex >= rbytes.Length) { return(""); } string readString = ByteConvert.MsgBytesToString(rbytes, curReadIndex); curReadIndex += readString.Length + sizeof(byte); return(readString); }