Displaying 3 results from an estimated 3 matches for "raw_writ".
Did you mean:
raw_write
2005 Aug 22
2
RFC: "loop connections"
...ation of R's text connections, to
also support reading/writing raw binary data. There is very little
new code to speak of. For input connections, I wrote code to populate
the old text connection buffer from a raw vector, and provided a new
raw_read() method. For output connections, I wrote a raw_write() to
append to a raw vector. On input, the mode (text or binary) is
determined by the data type of the input object; on output, I use the
requested output mode (i.e. "w" / "wb"). For example:
> con <- loopConnection("r", "wb")
> a <- c(10,10...
2007 Nov 08
16
HVM domain with write caching going on somewhere to disk
I just about have my PV block device drivers booting, except just before
the login screen appears I get a message that the registry couldn''t be
written out. I''m pretty sure that this is because some data from the
int13 interface provided by the qemu intel ide driver that has been
written, hasn''t actually made it to the block device (lvm volume in my
case).
I''ve
2005 Sep 18
0
Updated rawConnection() patch
...grow(this, 1);
+ SET_STRING_ELT(this->data, this->len++, mkChar(p));
} else {
/* retain the last line */
if(strlen(p) >= this->lastlinelength) {
@@ -1864,75 +1897,94 @@
return res;
}
-static void outtext_init(Rconnection con, char *mode, int idx)
+static size_t raw_write(const void *ptr, size_t size, size_t nitems,
+ Rconnection con)
+{
+ Routtextconn this = (Routtextconn)con->private;
+ outtext_grow(this, size*nitems);
+ memcpy(RAW(this->data)+this->len, ptr, size*nitems);
+ this->len += size*nitems;
+ return nitems;
+}
+
+static void...