[bind10-dev] CharString, typedef or class?
Jelte Jansen
jelte at isc.org
Fri Jan 18 13:33:46 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Apart from making it public (see http://bind10.isc.org/ticket/2638), I
want to consider making it a real class instead of a typedef (of
vector<uint8_t>) with static helper functions.
While we get all vector methods everything 'for free' now, the ones
we'd need should be easy to wrap (assuming the member would still be a
vector), and I think we could make compare simpler as we could make
some guarantees about the contents.
Also, depending on whether we prefer a small extra cycle effort or 1
byte per instance, we could get rid of the double size data (currently
both in first byte and as vector size)
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlD5TzoACgkQ4nZCKsdOncW1UgCgvFYEh9T7BdnnKjFv1EbVrJGi
vGgAni3tuT0/uIvQxEvZubwg+cyGjIx2
=jFE/
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list