8000 Binding a Binary-coded decimal · Issue #6 · preon/preon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Binding a Binary-coded decimal #6
Open
@kaefert

Description

@kaefert

Hi there!

This is sort of a feature request.. I would like to bind a binary coded decimal.
In my case I want to read a date, If I look at this area of my samplefile with a hex editor I can see this: "19 91 05 10"
So what I want is to get this information in some meaningfull way.
Maybe 4 int variables which will be filled with 19, 91, 05 and 10, and I will then do the rest in a getter method.

So what I found I can do right now is to bind this area of my file with
@BoundString(size="4") String dateString;

with this the eclipse debugger will show me this funny chars that have their hex-code written inside them, except for 91 which is apearantly encoding a funny questionmark.

Have I overlooked some way of doing this or could you implement something like this for me?

p.s. I'm using the Snapshot-1.1 since I used this getting-started guide from here --> http://preon.codehaus.org/getting-started.html to generate me a sample project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0