Util methods mostly for dealing ByteBuffers.
Number of bytes made up by each type.
Gets the number of bytes to represent the string in the charset defined in emulinker.config, plus one for the stop byte.