code: public LocalVariable buildSerialEncoding(CodeAssembler assembler,
                                               StorableProperty<S>[] properties)
          throws SupportException
      {
          properties = ensureAllProperties(properties);
          return buildEncoding
              (Mode.SERIAL, assembler, properties, null, null, null, false, -1, null, null);
      }
docs: Generates bytecode instructions to encode properties and their
  states. This encoding is suitable for short-term serialization only.
  
  @param assembler code assembler to receive bytecode instructions
  @param properties specific properties to decode, defaults to all
  properties if null
  @return local variable referencing a byte array with encoded data
  @throws SupportException if any property type is not supported
  @since 1.2