[Qt5-feedback] Real 64 Bit support ?

Thiago Macieira thiago at kde.org
Fri May 13 15:26:47 CEST 2011


On Friday, 13 de May de 2011 11:32:11 André Pönitz wrote:
> > I'd argue that QDataStream should be more protocol oriented then as that
> > can be  defined in the protocol used to communicate the data.
> > But that's a different issue altogether.
> 
> How would a protocol look like, that's used to put data into a file?

I guess it would be something like the D-Bus wire format, which has only basic 
types (like C):

	bool
	byte
	int16
	uint16
	int32
	uint32
	int64
	uint64
	double
	string (encoding pre-determined)
	array (of any one type)
	variant (can contain anything)
	dictionary of (simple types, any type)
	structure (1* anytype)

The same wire format is used by D-Conf for its on-disk data storage (which is 
mmap()ed and read with zero copy).

Still, it's very hard to extend this system. For example, many complain about 
the lack of a single-precision floating point. Other types missing are maybe-
types, 128-bit integers, extended-precision float, quad-precision floats, 
dictionaries with non-unique keys, etc.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt.nokia.com/pipermail/qt5-feedback/attachments/20110513/359e6cdf/attachment.bin 


More information about the Qt5-feedback mailing list