[z1823] Added appendPackXYZ to ByteBuffer class.

Signed-off-by: SilverIce <slifeleaf@gmail.com>

(based on commit c213852)

Signed-off-by: stfx <stfx@hotmail.de>

(cleaned version of 8252b19)

(based on commit [s1381] - 679018b)