(s string)
| 104 | } |
| 105 | |
| 106 | func (e *Encoder) writeString(s string) error { |
| 107 | if err := e.writeShort(int16(len(s))); err != nil { |
| 108 | return err |
| 109 | } |
| 110 | return e.writeBytes([]byte(s)...) |
| 111 | } |
| 112 | |
| 113 | func (e *Encoder) encodeCompoundStruct(val reflect.Value) error { |
| 114 | for i := 0; i < val.NumField(); i++ { |
no test coverage detected