search for: bytepo

Displaying 1 result from an estimated 1 matches for "bytepo".

Did you mean: byteop
2012 May 08
1
Fast reading of hex data?
...#39;m doing - well, anything that would make a sizable difference anyway. Right now, my methodology is the following: Use mmap (from library mmap) to map the file to a memory mapped variable, reading in each byte as uint8 integer. obj <- mmap("file.txt", mode = uint8()) tmp <- obj[bytepos] Converting the integer representations of each byte into the appropriate integer by tmp <- tmp - 48 - 7*(tmp>64) Collating blocksize values together by tmp<- matrix(tmp, ncol = blocksize, byrow = T) %*% 16^(blocksize: 1 - 1) Now, my question is, is there a better way? My attempts with...