class RedisCommandResult implements CommandResult {

  @Override
  public byte[] getBytes() throws ConnectionException, IOException {
    final RedisStreamReader streamReader = getStreamReader();
    checkMessageType(streamReader, RedisBytes.DOLLAR_BYTE);
    final int length = streamReader.readInt();
    return streamReader.read(length);
  }

  public  RedisCommandResult(final Connection connection);

}