diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-10 20:03:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-10 20:03:23 (GMT) |
commit | 8dff3daac4d2dc98b90adaecea834fb65db4fb10 (patch) | |
tree | 39a747f8fcdcbf525bb64a7e4173ff2a5b360d28 /src/analysis/contents/restricted.c | |
parent | f3e84729588f7e2e518f82116e908455d957f9ca (diff) |
Handled switch and fill-array data pseudo-instructions without plugin.
Diffstat (limited to 'src/analysis/contents/restricted.c')
-rw-r--r-- | src/analysis/contents/restricted.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/analysis/contents/restricted.c b/src/analysis/contents/restricted.c index 1f996d1..3eaab6d 100644 --- a/src/analysis/contents/restricted.c +++ b/src/analysis/contents/restricted.c @@ -252,6 +252,35 @@ GBinContent *g_restricted_content_new(GBinContent *content, const mrange_t *rang /****************************************************************************** * * +* Paramètres : content = contenu binaire où puiser les données à fournir. * +* range = espace de restrictions pour les accès. * +* * +* Description : Charge en mémoire le contenu d'un contenu restreint. * +* * +* Retour : Représentation de contenu à manipuler ou NULL en cas d'échec.* +* * +* Remarques : - * +* * +******************************************************************************/ + +GBinContent *g_restricted_content_new_ro(const GBinContent *content, const mrange_t *range) +{ + GRestrictedContent *result; /* Structure à retourner */ + + result = g_object_new(G_TYPE_RESTRICTED_CONTENT, NULL); + + result->internal = (GBinContent *)content; + g_object_ref(G_OBJECT(result->internal)); + + copy_mrange(&result->range, range); + + return G_BIN_CONTENT(result); + +} + + +/****************************************************************************** +* * * Paramètres : content = contenu binaire à venir lire. * * checksum = empreinte de zone mémoire à compléter. * * * |