docs: private void writeTypedBytes(final int type, final byte[] data, final int offset, final int length)
      {
          int totalLength = 1 + length;
          if (length < 14)
          {
              buffer.writeUInt8(type | length);
          }
          else
          {
              // need to specify length explicitly
              buffer.writeUInt8(type | 0xE);
              final int sizeLength = buffer.writeVarUInt(length);
              totalLength += sizeLength;
          }
          updateLength(totalLength);
          buffer.writeBytes(data, offset, length);
      }