header.writeByte(Header.Flag.serialize(frame.header.flags));
if (frame.header.version >= Server.VERSION_3)
header.writeShort(frame.header.streamId);
else
header.writeByte(frame.header.streamId);
header.writeByte(type.opcode);
header.writeInt(frame.body.readableBytes());
results.add(Unpooled.wrappedBuffer(header, frame.body));