Displaying 1 result from an estimated 1 matches for "rf_israw".
Did you mean:
rf_isna
2005 Aug 20
1
Implementing a single-precision class with raw
...be and was wondering
whether my guesses were correct and/or might be included in 2.2.0:
#define NEW_RAW(n) allocVector(RAWSXP,n)
#define RAW_POINTER(x) (RAW(x))
#define AS_RAW(x) coerceVector(x,RAWSXP)
I'm not sure whether coerceVector(x,RAWSXP) will actually work. Also,
there isn't an Rf_isRaw() function, which would be useful for an
IS_RAW(x) macro.
Another issue with the "float" class is that it will run into endian
issues if it ever gets saved to disk and moved cross-platform. I don't
really anticipate that happening but it might be nice to incorporate
serialization...