add access to data

This commit is contained in:
John
2023-11-11 09:46:37 +01:00
parent a8bd30a68f
commit bceeb5f4f9
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -294,6 +294,12 @@ class SymbolString {
return m_data.size() - lengthOffset - 1;
}
/**
* Return a pointer to the data bytes.
* @return a pointer to the data bytes.
*/
const symbol_t* data() const { return m_data.data(); }
/**
* Return the data byte at the specified index (within DD).
* @param index the index of the data byte (within DD) to return.