External Data Representation (XDR)
The Firebird wire protocol uses XDR for exchange of messages between client and server.The encoding of integers is big-endian (network order).
However, some data inside the messages may be little-endian (also known as VAX encoding within Firebird sources).