mType = type; mData = data;
return mData;
try { return new String(mType, "UTF8"); } catch (UnsupportedEncodingException uee) { return ""; }
return (short)(mData[offset] & 0x00ff);
long value = 0; for (int i = 0; i < 4; i++) value += (mData[offset + i] & 0xff) << ((3 - i) * 8); return value;