473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Byte data display...

I am trying to set up a form to edit a byte array and am looking for a
control that gives me an interface that shows the following:

1) First column is the offset from the start of the array
2) Second columns is a 8 byte or 16 byte data in raw hex format
3) Third column is the ASCII representation of the data in column 2

Kind of looks like the this:

FEAC00E0 00 EE ED F9 60 5F 28 F4-21 4C 38 A2 4E 87 8C 00
..îíù`_(ô!L8.N...
FEAC00F0 01 00 51 C0 00 00 03 00-01 F6 F9 C6 FB AA 00 00
...Q......öù.û...
FEAC0100 00 04 26 32 00 C8 00 70-17 FA 00 04 00 01 00 00
...&2...p.ú......
FEAC0110 00 00 00 02 04 20 00 62-00 A4 00 E6 00 00 30 2E .....
..b...æ..0.
FEAC0120 36 33 06 00 64 00 05 00-32 00 03 00 05 00 50 00
63..d...2.....P.

Any ideas where I can get one, or any leads on creating one?
Jul 21 '05 #1
4 1739
Ray Cassick (Home) <rc************@enterprocity.com> wrote:
I am trying to set up a form to edit a byte array and am looking for a
control that gives me an interface that shows the following:

1) First column is the offset from the start of the array
2) Second columns is a 8 byte or 16 byte data in raw hex format
3) Third column is the ASCII representation of the data in column 2

Kind of looks like the this:

FEAC00E0 00 EE ED F9 60 5F 28 F4-21 4C 38 A2 4E 87 8C 00
.îíù`_(ô!L8.N...
FEAC00F0 01 00 51 C0 00 00 03 00-01 F6 F9 C6 FB AA 00 00
..Q......öù.û...
FEAC0100 00 04 26 32 00 C8 00 70-17 FA 00 04 00 01 00 00
..&2...p.ú......
FEAC0110 00 00 00 02 04 20 00 62-00 A4 00 E6 00 00 30 2E .....
.b...æ..0.
FEAC0120 36 33 06 00 64 00 05 00-32 00 03 00 05 00 50 00
63..d...2.....P.

Any ideas where I can get one, or any leads on creating one?


Well, where are you stuck? You should consider that the "ASCII"
representation of the data needs to know what to do with characters
outside the ASCII range - i.e. above 0x7f. You should probably have an
option for which encoding to use.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...


Well, where are you stuck? You should consider that the "ASCII"
representation of the data needs to know what to do with characters
outside the ASCII range - i.e. above 0x7f. You should probably have an
option for which encoding to use.


Well I am not really stuck YET since I have not decided to what side of the
build vs. buy/download coin I am going to land on.

If anyone knows of a source for such a control that is already built I would
be interested in it. Otherwise I will have to endeavor down the path of
rolling my own.
Jul 21 '05 #3
There is a control in the framework. Check out the ByteViewer.
System.ComponentModel.Design.ByteViewer

Lloyd Sheen
Jul 21 '05 #4
That rocked!

Thanks. It was just what I needed. I don't know why that control does not
appear in the toolbox.

"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:Ni********************@twister01.bloor.is.net .cable.rogers.com...
There is a control in the framework. Check out the ByteViewer.
System.ComponentModel.Design.ByteViewer

Lloyd Sheen

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: nitin8or | last post by:
Hi ALL, I want to display in a RichTextBox the Binary Large Objects data coming from database. If I have one record its not a problem I convert it to byte array and pass it on in a stream as a...
7
by: dlarock | last post by:
I wrote the following to do an MD5 hash. However, I have a problem (I think) with the conversion from the Byte MD5 hash back to string. Watching this through the debugger it appears as if the...
5
by: rcolby | last post by:
Evening, Wondering if someone can point me in the right direction, on how I would compare a system.guid with a system.byte. system.guid (pulled from sql server table with a data type of...
4
by: Ray Cassick \(Home\) | last post by:
I am trying to set up a form to edit a byte array and am looking for a control that gives me an interface that shows the following: 1) First column is the offset from the start of the array 2)...
5
by: moni | last post by:
Hey, My buffer contains a short int, some char, and a structure in form of a byte array. Read the string as: TextBox4.Text = System.Text.Encoding.ASCII.GetString(buffer1, 0, 31); Read...
6
by: Rain | last post by:
Im a newbie and i need help.. would appreciate any help at all... I need to make a method that accepts a 34 bytes data and inside the method i need to get the 2nd, 3rd, 4th or any of the byte...
7
by: StupidScript | last post by:
>From the manual "Storage Requirements": "ENUM('value1','value2',...) =1 or 2 bytes, depending on the number of enumeration values (65,535 values maximum)" This seems to mean: "a" = 1 byte...
5
by: stuie_norris | last post by:
Hi Group I am trying to write a method to unpack a byte array into an Uint64. But the results are wrong. public static void UnpackUint64(ref UInt64 dst, byte Data, ref uint Index) { dst =...
17
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hi Gurus, I need to transfer a jagged array of byte by reference to unmanaged function, The unmanaged code should changed the values of the array, and when the unmanaged function returns I need...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.