[x] I have reviewed the OFRAK contributor guide and attest that this pull request is in accordance with it.
One sentence summary of this PR (This should go in the CHANGELOG!)
Add method to Resource and data service to search for patterns in its data
Link to Related Issue(s)
Previously the only way to search was to request all the data then search it. This copying of data is inefficient, and searching for patterns in data is something users are likely to be interested in, so this makes sense to add to the API.
Please describe the changes in your request.
Add a search method to the data service that allows searching for either literal bytes or a regex pattern
Add a search_data method to Resource which calls the DataService's search method on itself
Anyone you think should look at this, specifically?
One sentence summary of this PR (This should go in the CHANGELOG!) Add method to Resource and data service to search for patterns in its data
Link to Related Issue(s) Previously the only way to search was to request all the data then search it. This copying of data is inefficient, and searching for patterns in data is something users are likely to be interested in, so this makes sense to add to the API.
Please describe the changes in your request.
search
method to the data service that allows searching for either literal bytes or a regex patternsearch_data
method to Resource which calls the DataService'ssearch
method on itselfAnyone you think should look at this, specifically?