public static Single[] ReadSingleArray(this ObjectReader reader) { var length = reader.ReadInt32(); Single[] value = new Single[length]; for (int i = 0; i < length; i++) { value[i] = reader.ReadSingle(); } return(value); }