コード例 #1
0
void NetStreamSender::_encode(NetStreamStorage & event, int value){
  event.writeInt(value);
}
コード例 #2
0
void NetStreamSender::_encode(NetStreamStorage & event, const vector<double> &  value){
  event.writeInt(value.size());
  for(vector<double>::const_iterator i = value.begin(); i != value.end(); i++){
    event.writeDouble((*i));
  }
}
コード例 #3
0
void NetStreamSender::_encode(NetStreamStorage & event, const vector<GS_BOOL> & value){
  event.writeInt(value.size());
  for(vector<bool>::const_iterator i = value.begin(); i != value.end(); i++){
    event.writeByte((*i));
  }
}