N
nick.stefanov
Hello,
I am trying to read a binary file generated from Ethereal. I need a
structure to hold my frame and one of my variables which stores
source/destination address has to be of type char[6]. In my structure
i cannot figure out how to declare this. Trying char[] dest_addr = new
char[6] but I get an error cannot have instance field initializers in
structs.
If I just delare public char[] dest_addr and then try to read like so
binaryfile.ReadChars(6) what gets stored is System.Char[]. Any help on
how to declare and read is very appriciated.
Nick
I am trying to read a binary file generated from Ethereal. I need a
structure to hold my frame and one of my variables which stores
source/destination address has to be of type char[6]. In my structure
i cannot figure out how to declare this. Trying char[] dest_addr = new
char[6] but I get an error cannot have instance field initializers in
structs.
If I just delare public char[] dest_addr and then try to read like so
binaryfile.ReadChars(6) what gets stored is System.Char[]. Any help on
how to declare and read is very appriciated.
Nick