public string Serialize(SC3String s) { _writer = new StringWriter(); foreach (var segment in s.Segments) { Visit(segment); } return(_writer.ToString()); }
public ImmutableArray <byte> Encode(SC3String sc3String) { _builder = ImmutableArray.CreateBuilder <byte>(); foreach (var segment in sc3String.Segments) { Visit(segment); } Append(StringSegmentCodes.StringTerminator); return(_builder.ToImmutable()); }
public override string Serialize(SC3String sc3String) { var impl = new SerializerImpl(); return(impl.Serialize(sc3String)); }
public ImmutableArray <byte> Encode(SC3String sc3String) { var impl = new EncoderImpl(_data); return(impl.Encode(sc3String)); }