According to Serge Lidin (in Inside Microsoft .NET Il Assembler) the #US
stream is a blob heap that contains user-defined strings.  He goes on to
say that "...the #US heap can store not only Unicode strings but any binary
object, which opens some intriguing possibilities."  What "intruiging
possibilities" might he be referring to here?  Unfortunately, I am unable
to find another reference to this in the book.

My questions:
1) Does anyone know why it would be useful to embed "custom" binary data
into the #US stream?
2) How might one go about this?  Recovering the data from the stream would
appear to be a straight forward (if unmanaged) task.  However, embedding
the data seems more difficult.  The binary data would need to be baked into
the metadata...  What might be the best way to get the data into an
assembly's metadata (Rotor? Some reflection technique that I am unaware
of?)?

My thanks to anyone who can help me with these problems.  They have been
bugging me for a while.

-Erik

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to