Inline assembly in VS C# Express ?

Hello.

I could use some help right about now.
I'm writing a command-line Application for loading a bmp image, processing it,
then controlling a CNC (Computer numerical controlled) mill, based on the info in the bmp image.

Now, the problem is that I need a bitwise access to the data. and I can't find a "BIT" level
type, and neither operators at that level.

What I currently do is :
I read a byte, (Or several) from the bmp file. (After loading the bmp header into an object of my own creation).

I then load these bytes into an array. However I find it kind of hard to manipulate this array in a correct
fashion to display and edit what I want. Current array is of type int[][].

What I would like is a "Bit[][] array". That would be sweet :D
That would enable me to do pretty much what I wanted with it.

However, as I'm reasonably sure this doesn't exists, my question is :

Can I use Inline asm in VS C# Express
And where can I find documentation on this.

Regards



Answer this question

Inline assembly in VS C# Express ?

  • aarongreenberg

    Use System.Collections.BitArray to quickly access the bits in the image. To make it 2-dimensional, use an array of BitArrays.


  • Sarah Cameron

    Hello again.

    Thanks for the answere from both of you.
    They were both enlightening. So I can't use inline assembly.

    But System.Collections.BitArray might just do the job for me :-)

    Thanks again, regards



  • thomaskremmel

    No you can't use inline assembler in C#. It doesn't matter which VS edition you use.

  • Inline assembly in VS C# Express ?