()
| 15 | } |
| 16 | |
| 17 | func NewSerializer() *Serializer { |
| 18 | m := sup.NewBSUPMarshaler() |
| 19 | m.Decorate(sup.StyleSimple) |
| 20 | s := &Serializer{ |
| 21 | marshaler: m, |
| 22 | } |
| 23 | s.writer = bsupio.NewWriter(sio.NopCloser(&s.buffer)) |
| 24 | return s |
| 25 | } |
| 26 | |
| 27 | func (s *Serializer) Decorate(style sup.TypeStyle) { |
| 28 | s.marshaler.Decorate(style) |