getStructureDateTypes static method

List<int> getStructureDateTypes(
  1. Structure structure,
  2. DistributedConnection connection
)
Get DataType array of a given Structure Structure to get its DataTypes Distributed connection is required in case a type is at the other end

Implementation

static List<int> getStructureDateTypes(
    Structure structure, DistributedConnection connection) {
  var keys = structure.getKeys();
  var types = new List<int>.generate(
      keys.length, (i) => Codec.getDataType(structure[keys[i]], connection));

  // for (var i = 0; i < keys.length; i++)
  //   types[i] = Codec.getDataType(structure[keys[i]], connection);
  return types;
}