NewEncoderForFormat returns an Encoder that writes a property list to w in the specified format. Pass AutomaticFormat to allow the library to choose the best encoding (currently BinaryFormat).
(w io.Writer, format int)
| 65 | // NewEncoderForFormat returns an Encoder that writes a property list to w in the specified format. |
| 66 | // Pass AutomaticFormat to allow the library to choose the best encoding (currently BinaryFormat). |
| 67 | func NewEncoderForFormat(w io.Writer, format int) *Encoder { |
| 68 | return &Encoder{ |
| 69 | writer: w, |
| 70 | format: format, |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // NewBinaryEncoder returns an Encoder that writes a binary property list to w. |
| 75 | func NewBinaryEncoder(w io.Writer) *Encoder { |
no outgoing calls