public void Add(BytesList bl) { foreach (byte[] bytes in bl.RawList()) { _sink.Put(bytes); } }
public void AddLengthEncoded(ISerializedType value) { var bytes = new BytesList(); value.ToBytes(bytes); AddLengthEncoded(bytes); }
public void AddLengthEncoded(BytesList bytes) { Put(EncodeVl(bytes.BytesLength())); Add(bytes); }