vnpy/vn.ib/ibapi/client/EMessage.cpp
2016-08-23 23:45:06 +08:00

21 lines
484 B
C++

/* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
#include "StdAfx.h"
#include "EMessage.h"
EMessage::EMessage(const std::vector<char> &data) {
this->data = data;
}
const char* EMessage::begin(void) const
{
return data.data();
}
const char* EMessage::end(void) const
{
return data.data() + data.size();
}