Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new function: gras_datadesc_size to allow messaging layer to malloc the needed space
[simgrid.git] / src / gras / DataDesc / datadesc.c
index 6fc86b2..f5a41d8 100644 (file)
@@ -169,6 +169,16 @@ gras_datadesc_get_id(gras_datadesc_type_t *ddt) {
   return ddt->code;
 }
 
+/**
+ * gras_datadesc_size: 
+ *
+ * Returns the size occuped by data of this type (on the current arch).
+ *
+ */
+int gras_datadesc_size(gras_datadesc_type_t *type) {
+  return type->size[GRAS_THISARCH];
+}
+
 /**
  * gras_datadesc_type_dump:
  *