}
ArrayList<AdvertisedDataSource> result =
new ArrayList<AdvertisedDataSource>();
FastDeserializer fds = new FastDeserializer(m_data);
int count = m_data.getInt();
for (int i=0; i < count; i++) {
ArrayList<VoltType> types = new ArrayList<VoltType>();
ArrayList<String> names = new ArrayList<String>();
byte is_replicated = fds.readByte();
int p_id = fds.readInt();
long t_id = fds.readLong();
String t_name = fds.readString();
int colcnt = fds.readInt();
for (int jj = 0; jj < colcnt; jj++) {
names.add(fds.readString());
types.add(VoltType.get((byte)fds.readInt()));
}
result.add(new AdvertisedDataSource(is_replicated, p_id, t_id,
t_name, names, types));
}
return result;