Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Mata buffered read 64-bit integer (8 byte/int64), how?


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Mata buffered read 64-bit integer (8 byte/int64), how?
Date   Thu, 13 Jun 2013 16:12:36 -0400

I read a 32-bit integer value from a buffered file with d=fbufget(C,fh,"%4bu").

How do I read a 64-bit integer from the same file when Mata does not
support format "%8bu"? And what can be the type of the LHS (type of
variable d above) to accommodate the result of the read without the
loss of information (double is not good, not sure about quad
precision).

I can read it as 8-bytes string, or 8 individual bytes, but I also
need to work with the result as a value in Mata. So looking for a
convenient solution.

Thank you,
     Sergiy
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index