nodes: Added data size node
This commit is contained in:
parent
b6f76ad8ed
commit
fee176dc72
@ -405,6 +405,19 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
};
|
||||
|
||||
class NodeDataSize : public dp::Node {
|
||||
public:
|
||||
NodeDataSize() : Node("hex.builtin.nodes.data_access.size.header", {
|
||||
dp::Attribute(dp::Attribute::IOType::Out, dp::Attribute::Type::Integer, "hex.builtin.nodes.data_access.size.size")
|
||||
}) { }
|
||||
|
||||
void process() override {
|
||||
auto size = SharedData::currentProvider->getActualSize();
|
||||
|
||||
this->setIntegerOnOutput(0, size);
|
||||
}
|
||||
};
|
||||
|
||||
class NodeCastIntegerToBuffer : public dp::Node {
|
||||
public:
|
||||
NodeCastIntegerToBuffer() : Node("hex.builtin.nodes.casting.int_to_buffer.header", {
|
||||
@ -826,6 +839,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
ContentRegistry::DataProcessorNode::add<NodeReadData>("hex.builtin.nodes.data_access", "hex.builtin.nodes.data_access.read");
|
||||
ContentRegistry::DataProcessorNode::add<NodeWriteData>("hex.builtin.nodes.data_access", "hex.builtin.nodes.data_access.write");
|
||||
ContentRegistry::DataProcessorNode::add<NodeDataSize>("hex.builtin.nodes.data_access", "hex.builtin.nodes.data_access.size");
|
||||
|
||||
ContentRegistry::DataProcessorNode::add<NodeCastIntegerToBuffer>("hex.builtin.nodes.casting", "hex.builtin.nodes.casting.int_to_buffer");
|
||||
ContentRegistry::DataProcessorNode::add<NodeCastBufferToInteger>("hex.builtin.nodes.casting", "hex.builtin.nodes.casting.buffer_to_int");
|
||||
|
@ -342,10 +342,13 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.builtin.nodes.data_access.read.address", "Adresse" },
|
||||
{ "hex.builtin.nodes.data_access.read.size", "Grösse" },
|
||||
{ "hex.builtin.nodes.data_access.read.data", "Daten" },
|
||||
{ "hex.builtin.nodes.data_access.write", "Schreiben" },
|
||||
{ "hex.builtin.nodes.data_access.write", "Schreiben" },
|
||||
{ "hex.builtin.nodes.data_access.write.header", "Schreiben" },
|
||||
{ "hex.builtin.nodes.data_access.write.address", "Adresse" },
|
||||
{ "hex.builtin.nodes.data_access.write.data", "Daten" },
|
||||
{ "hex.builtin.nodes.data_access.size", "Datengrösse"},
|
||||
{ "hex.builtin.nodes.data_access.size.header", "Datengrösse"},
|
||||
{ "hex.builtin.nodes.data_access.size.size", "Grösse"},
|
||||
|
||||
{ "hex.builtin.nodes.casting", "Datenumwandlung" },
|
||||
{ "hex.builtin.nodes.casting.int_to_buffer", "Integral zu Buffer" },
|
||||
|
@ -342,10 +342,13 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.builtin.nodes.data_access.read.address", "Address" },
|
||||
{ "hex.builtin.nodes.data_access.read.size", "Size" },
|
||||
{ "hex.builtin.nodes.data_access.read.data", "Data" },
|
||||
{ "hex.builtin.nodes.data_access.write", "Write" },
|
||||
{ "hex.builtin.nodes.data_access.write", "Write" },
|
||||
{ "hex.builtin.nodes.data_access.write.header", "Write" },
|
||||
{ "hex.builtin.nodes.data_access.write.address", "Address" },
|
||||
{ "hex.builtin.nodes.data_access.write.data", "Data" },
|
||||
{ "hex.builtin.nodes.data_access.size", "Data Size"},
|
||||
{ "hex.builtin.nodes.data_access.size.header", "Data Size"},
|
||||
{ "hex.builtin.nodes.data_access.size.size", "Size"},
|
||||
|
||||
{ "hex.builtin.nodes.casting", "Data conversion" },
|
||||
{ "hex.builtin.nodes.casting.int_to_buffer", "Integer to Buffer" },
|
||||
|
@ -31,13 +31,13 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.welcome.header.customize", "Personalizza" },
|
||||
{ "hex.welcome.customize.settings.title", "Impostazioni" },
|
||||
{ "hex.welcome.customize.settings.desc", "Cambia le preferenze di ImHex" },
|
||||
//{ "hex.welcome.header.update", "Updates" },
|
||||
// { "hex.welcome.update.title", "New Update available!" },
|
||||
// { "hex.welcome.update.desc", "ImHex {0} just released! Download it here." },
|
||||
// { "hex.welcome.update.link", "https://github.com/WerWolv/ImHex/releases/latest" },
|
||||
{ "hex.welcome.header.update", "Aggiornamenti" },
|
||||
{ "hex.welcome.update.title", "Nuovo aggiornamento disponibile!" },
|
||||
{ "hex.welcome.update.desc", "ImHex {0} è appena stato rilasciato! Scaricalo qua" },
|
||||
{ "hex.welcome.update.link", "https://github.com/WerWolv/ImHex/releases/latest" },
|
||||
{ "hex.welcome.header.learn", "Scopri" },
|
||||
{ "hex.welcome.learn.latest.title", "Ultima Versione" },
|
||||
// { "hex.welcome.learn.latest.desc", "Read ImHex' current changelog" },
|
||||
{ "hex.welcome.learn.latest.desc", "Leggi il nuovo changelog di ImHex'" },
|
||||
{ "hex.welcome.learn.latest.link", "https://github.com/WerWolv/ImHex/releases/latest" },
|
||||
{ "hex.welcome.learn.pattern.title", "Documentazione dei Pattern" },
|
||||
{ "hex.welcome.learn.pattern.desc", "Scopri come scrivere pattern per ImHex con la nostra dettagliata documentazione" },
|
||||
@ -53,7 +53,7 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.common.hexadecimal", "Esadecimale" },
|
||||
{ "hex.common.octal", "Ottale" },
|
||||
{ "hex.common.error", "Errore" },
|
||||
// { "hex.common.fatal", "Fatal Error" },
|
||||
{ "hex.common.fatal", "Errore Fatale" },
|
||||
{ "hex.common.address", "Indirizzo" },
|
||||
{ "hex.common.size", "Dimensione" },
|
||||
{ "hex.common.region", "Regione" },
|
||||
@ -342,10 +342,13 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.builtin.nodes.data_access.read.address", "Indirizzo" },
|
||||
{ "hex.builtin.nodes.data_access.read.size", "Dimensione" },
|
||||
{ "hex.builtin.nodes.data_access.read.data", "Dati" },
|
||||
{ "hex.builtin.nodes.data_access.write", "Scrivi" },
|
||||
{ "hex.builtin.nodes.data_access.write", "Scrivi" },
|
||||
{ "hex.builtin.nodes.data_access.write.header", "Scrivi" },
|
||||
{ "hex.builtin.nodes.data_access.write.address", "Indirizzo" },
|
||||
{ "hex.builtin.nodes.data_access.write.data", "Dati" },
|
||||
{ "hex.builtin.nodes.data_access.size", "Dati Dimensione"},
|
||||
{ "hex.builtin.nodes.data_access.size.header", "Dati Dimensione"},
|
||||
{ "hex.builtin.nodes.data_access.size.size", "Dimensione"},
|
||||
|
||||
{ "hex.builtin.nodes.casting", "Conversione Dati" },
|
||||
{ "hex.builtin.nodes.casting.int_to_buffer", "Da Intero a Buffer" },
|
||||
|
Loading…
Reference in New Issue
Block a user