Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to check a line is empty or not? #4

Open
zinwalin opened this issue Oct 7, 2022 · 1 comment
Open

how to check a line is empty or not? #4

zinwalin opened this issue Oct 7, 2022 · 1 comment

Comments

@zinwalin
Copy link

zinwalin commented Oct 7, 2022

suppose we have hex file as following

:1017D0000000000000000000000000000000000009 :1017E00000000000000000000000000000000000F9 :1017F00000000000000000000000000000000000E9 :1018000080F6040C000000004C03FC005A03EC04BA :101810001A940700000CBA41019D5A3351D49A45DD :10182000000CBD410080BD33F87FBC4100809C337B :10183000F07F2C01FC10090010594901AC1E2A014F :101840008C492C01FC12000000189C037CF16C01F7 :10185000FC1200000018A841019D0831F5D6C845CA :1018600000000000A841008008310800A941008064 :101870002931C00005CC000C08F800000831040034

is there any way or function to check a line is empty or not?

@Luncher91
Copy link
Owner

Hi,

The class IntelHexFile as multiple methods which might be helpful. findLineByAddress will return a HexFileLine of which you can check the data 'getData'.

Another method might be to iterate over all lines using "getRecords" to find the line you want to check.

Does that help you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants