A few questions about serialization and data formats

rarkenin
Member
 
Posts: 668
Joined: Tue Nov 20, 2012 20:48

A few questions about serialization and data formats

by rarkenin » Sat Feb 09, 2013 22:24

I hope I haven't missed something in the doc folder, so here goes.

  • Is v3f1000 3 32-bit integers, that when divided by 1000, yield a floating point value, such as a player position? Is their endianness machine-specific?
  • Where can I find annotated samples of the serialization formats for inventories, as well as node/object definitions?
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.
 

doserj
Member
 
Posts: 10
Joined: Mon Dec 10, 2012 15:05

by doserj » Sun Feb 10, 2013 22:13

rarkenin wrote:Is v3f1000 3 32-bit integers, that when divided by 1000, yield a floating point value, such as a player position?


yes.

Is their endianness machine-specific?


no. data is serialized in big-endian format.

Where can I find annotated samples of the serialization formats for inventories, as well as node/object definitions?


I am afraid you will probably have to look at the sourcecode for now.
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 1 guest

cron