[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-user
Subject: 128 bit integers
From: svante karlsson <saka () csi ! se>
Date: 2014-05-28 15:30:14
Message-ID: CAHkETj_So9cAt97giuOf74tAcBiQcV=mSk4ZKcCR15StmWV=Sw () mail ! gmail ! com
[Download RAW message or body]
I'm having issues with endian converison of 128 bit integers (uuid's in my
case) but the problem is generic
I currently encodes them as "fixed" but that leaves the swapping of bytes
(for endianness) up to the user. I had not given the matter any thought
until we streched some existing 64 bit id's in an existing database to 128
by simply adding 0 in the upper 64 bits. It turns out that the c/c++ and
java versions ar not (of course) compatible.
I think we have the same issue in the spec
The spec exemplifies
serverHash in avro rpc as a md5.
{"type": "fixed", "name": "MD5", "size": 16}
java to java this works fine...
What's the best way to tackle this?
/svante
[Attachment #3 (text/html)]
<div dir="ltr">I'm having issues with endian converison of 128 bit integers \
(uuid's in my case) but the problem is generic<br><br>I currently encodes them as \
"fixed" but that leaves the swapping of bytes (for endianness) up to the \
user. I had not given the matter any thought until we streched some existing 64 bit \
id's in an existing database to 128 by simply adding 0 in the upper 64 bits. It \
turns out that the c/c++ and java versions ar not (of course) compatible. <br> <br>I \
think we have the same issue in the spec<br><br>The spec exemplifies \
<br><br>serverHash in avro rpc as a md5. <br><br> {"type": \
"fixed", "name": "MD5", "size": 16}<br> <br> \
java to java this works fine...<br><br>What's the best way to tackle \
this?<br><br>/svante<br><br><pre class="" \
style="border-color:rgb(165,182,198);color:rgb(0,0,0);font-size:13px"><span \
style="font-family:arial"><br> </span></pre><pre class="" \
style="border-color:rgb(165,182,198);color:rgb(0,0,0);font-size:13px"><span \
style="font-family:arial"><br></span></pre><pre class="" \
style="border-color:rgb(165,182,198);color:rgb(0,0,0);font-size:13px"> <br></pre><pre \
class="" style="border-color:rgb(165,182,198);color:rgb(0,0,0);font-size:13px"><br></pre></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic