BuffBytes bytesToBuff(ByteArray target, String key) { BuffBytes buff = BuffBytes(); buff.key = key; buff.value = target; return buff; }