Re: decoding of long Int
Kailas <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Oct 9, 10:57 pm, Boris Zbarsky <[email protected]> wrote: > On 10/9/09 6:51 AM, PATIL Kailas wrote: > > > name = 140340262156644 > > classword = 140340131011560 > > > Does anyone knows how to decode this type of values? > > Decode in what sense? What the integer means depends on the exact field > you're looking at. Sometimes it's just an integer (e.g. a file size). > In the case of classword, it's a tagged pointer if it came out of a > JSObject. > > In your case, |name| is of type jsval; you can use the various JSAPI > macros/functions (JSVAL_IS_*, JSVAL_TO_*, etc) to interrogate it. That > particular jsval happens to be a tagged pointer to a JSString. > > Presumably you're on a 64-bit system, which is why the pointers look > like that. > > -Boris Yes, I am on a 64-bit system. Thx for your answer.