(code byte)
| 104 | } |
| 105 | |
| 106 | func (p *parser) decodeValues(code byte) (frame, error) { |
| 107 | if (code & 0x40) != 0 { |
| 108 | // Compressed |
| 109 | return p.readCompressedFrame(code) |
| 110 | } |
| 111 | bytes, err := p.readFrame(code) |
| 112 | if err != nil { |
| 113 | return frame{}, err |
| 114 | } |
| 115 | return frame{ubuf: newBufferFromBytes(bytes)}, nil |
| 116 | } |
| 117 | |
| 118 | // decodeControl reads the next message frame as a control message and |
| 119 | // returns it as *sbuf.Control, which implements error. Errors are also |
no test coverage detected