Serialize object.

        Args:
            writer (neo.IO.BinaryWriter):
341951
def Serialize(self, writer):
        
        self.SerializeUnsigned(writer)
        writer.WriteSerializableArray(self.scripts)
467736
def Serialize(self, writer: BinaryWriter):
        
        super(ValidatorState, self).Serialize(writer)
        self.PublicKey.Serialize(writer)
        writer.WriteBool(self.Registered)
        writer.WriteFixed8(self.Votes)
1124790
public function xmlSerialize(Xml\Writer $writer)
    {
        foreach (explode(',', $this->value) as $value) {
            $writer->writeElement('text', $value);
        }
    }
1254791
public void toJson(Writer writer) throws IOException {
		startArray(writer);

		int size = size();
		for (int i = 0; i < size; i++) {
			put(writer, get(i));
			if (i + 1 < size) {
				addSeparator(writer);
			}
		}

		endArray(writer);
	}
1345003
public static void parkAndSerialize(final FiberWriter writer) {
        try {
            Fiber.parkAndSerialize(writer);
        } catch (SuspendExecution e) {
            throw RuntimeSuspendExecution.of(e);
        }
    }
1335856
def Serialize(self, writer):
        
        writer.WriteVarInt(len(self.NetworkAddressesWithTime))
        for address in self.NetworkAddressesWithTime:
            address.Serialize(writer)
48935
def serialize(node, stream=None, Dumper=Dumper, **kwds):
    
    return serialize_all([node], stream, Dumper=Dumper, **kwds)
128549
def Serialize(self, writer):
        
        super(StorageItem, self).Serialize(writer)
        writer.WriteVarBytes(self.Value)
1075982
def SerializeUnsigned(self, writer):
        
        writer.WriteUInt32(self.Version)
        writer.WriteUInt256(self.PrevHash)
        writer.WriteUInt256(self.MerkleRoot)
        writer.WriteUInt32(self.Timestamp)
        writer.WriteUInt32(self.Index)
        writer.WriteUInt64(self.ConsensusData)
        writer.WriteUInt160(self.NextConsensus)
958149
def write(self, writer: WriteStream) -> None:
        
        for part in self._raw:
            writer.write(bytes(part))
742572
def _write(self, *args, **kwargs):
        
        for consumer in self.consumers:
            consumer.write(*args, **kwargs)
857545
def Serialize(self, writer):
        
        super(Block, self).Serialize(writer)
        writer.WriteSerializableArray(self.Transactions)
1054085
def writer(self, outputs, stdout, stderr=sys.stderr):
        
        for output in outputs:
            try:
                output = flatten(output)
                if self.data_interchange_format == "json":
                    # Only dump one json string, and skip another one, maybe key or value.
                    output = filter(lambda x: x, output)
                else:
                    # JSON is already serialized, so we put `self.serialize` in a else statement.
                    output = map(self.serialize, output)
                print("\t".join(output), file=stdout)
            except BaseException:
                print(output, file=stderr)
                raise
90648
def write!
      writer = Snapshotify::Writer.new(self)
      writer.emitter = emitter
      writer.write
    end
1000053
public void setWriter (Writer writer) {
		if (!(writer instanceof JsonWriter)) writer = new JsonWriter(writer);
		this.writer = (JsonWriter)writer;
		this.writer.setOutputType(outputType);
		this.writer.setQuoteLongValues(quoteLongValues);
	}
664778
public void serialize( JsonWriter writer, T bean, JsonSerializationContext ctx ) {
        getSerializer().serialize( writer, getValue( bean, ctx ), ctx, getParameters() );
    }
87521
public void write(PrintWriter writer) {
        this.output = writer;
        dispatch(base, false);
        writer.flush();
    }