#15 Fixed-length data

closed
nobody
None
5
2012-06-29
2011-08-19
Anonymous
No

I need to control fixed-length data. If necessary, trim the extra data, as well as complementary to the desired length needed byte (0x00 or 0xFF).
For example the maximum length for the control = 10 bytes, the default value 0xff
10 00 -> 10 00 FF FF FF FF FF FF FF FF
10 00 FF FF FF FF FF FF FF FF 11 22 33 -> 10 00 FF FF FF FF FF FF FF FF

Discussion

  • Bernhard Elbl
    Bernhard Elbl
    2011-08-23

    You can use the following 2 methods to accomplish this:
    1.
    Use FileByteProvider. Create a file with your default value. FileByteProvider does not support insert or delete.

    2. Implement your own ByteProvider like the DynamicByteProvider and change the SupportsInsert and SupportsDelete method to return false.

     
  • Bernhard Elbl
    Bernhard Elbl
    2011-08-23

    • status: open --> closed
     
  • Bernhard Elbl
    Bernhard Elbl
    2011-08-23

    Maybe I will implement this feature in future releases.

     
  • Bernhard Elbl
    Bernhard Elbl
    2011-08-23

    • status: closed --> open
     
  • Bernhard Elbl
    Bernhard Elbl
    2012-06-29

    • status: open --> closed