Two points to make:

1. MemoryStream.GetBuffer() is not my preferred method because it
creates a default sized buffer (256) even when not needed. I prefer to
Read() the memorystream into a byte[] buffer with demarcated length,
instead.

2. Your example does not work because it creates a decimal array with
the same no. of items as in the byte array. In my test, it creates a
decimal array with 66 items. However, the original array has only 2
items.

Reply via email to