private static object DecodeFloat(string x, int startIndex, out int endIndex) { startIndex += 1; endIndex = startIndex + 4; return(BStruct.ToFloat(Util.StringBytes(x.Substring(startIndex, 4)), 0)); }
private static object DecodeDouble(string x, int startIndex, out int endIndex) { startIndex += 1; endIndex = startIndex + 8; return(BStruct.ToDouble(Util.StringBytes(x.Substring(startIndex, 8)), 0)); }
private static object DecodeInt2(string x, int startIndex, out int endIndex) { startIndex += 1; endIndex = startIndex + 2; return(BStruct.ToInt2(Util.StringBytes(x.Substring(startIndex, 2)), 0)); }