spudw2k Posted November 26, 2020 Share Posted November 26, 2020 I could use some suggestions here and/or best practices. I have a binary file format I am crafting and working with. The general structure of the binary format is: [HEADER] [FIELD1MARKER] [DATA] [FIELD2MARKER] [DATA] [FIELD1MARKER] [DATA] [FIELD2MARKER] [DATA]..... I just want some ideas how to handle processing the file. My hope is to inspect the data from header to EOF, but I am hoping for a more elegant method than using BinaryMid and keeping track of the position. Thoughts and suggestions welcome. I can throw together pseudo data / code if necessary, but just hoping for some fundamentals. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
JockoDundee Posted November 26, 2020 Share Posted November 26, 2020 4 hours ago, spudw2k said: but I am hoping for a more elegant method than using BinaryMid and keeping track of the position. This discussion may be of use, but it’s not, IMHO, a certainty. https://www.autoitscript.com/forum/topic/188564-use-regexp-on-binary-data/#comments Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now