示例#1
0
        [Fact] public unsafe void Extractor_BytesToStruct_FromType_Test()
        {
            object os = rctab.NewObject();

            Extractor.BytesToStructure(structBytes, os, 0);
            bool equal = rcobj.StructureEqual(os);

            Assert.True(equal);
        }
示例#2
0
 public unsafe static object StructureFrom(this object structure, byte[] binary, long offset = 0)
 {
     return(Extractor.BytesToStructure(binary, structure, offset));
 }
 public unsafe static void StructureFrom(this ValueType structure, byte[] binary, long offset = 0)
 {
     structure = Extractor.BytesToStructure(binary, structure, offset);
 }