Giter Club home page Giter Club logo

binaryserializationanalysis's Introduction

This is a simple project / class for peeking into the contents / structure of a stream that was created by the "BinaryFormatter" class' "Serialize" method.

In one project I was working on I found that the stream was much larger than I expected, and wanted to know what kind of problem might be causing it.

I couldn't find anything online to do this (and my stack overflow question at http://stackoverflow.com/q/3052202/74296 got no relevant responses), so I spent a few hours coding to Microsoft's spec, and it seems to work!

The relevant references I could find were Microsoft's official spec, and an unofficial analysis from Lluis Sanchez Gual, a contributor to the Mono project:

This is simple demo code, not fit for any particular purpose, etc etc. I'm releasing it under the Modified (3-clause) BSD license, so you can do just about anything with it as long as you don't blame me when it goes wrong, and don't republish the code without at least mentioning me :)

A lot can be done to improve its structure and clarity (and "Analysis" output), but I have little motivation to clean it up at this point.

Any questions, thoughts, suggestions for improvement, please contact me!

Tao Klerks

[email protected]

ChangeLog:

  • 2010-06: Original demo code
  • 2011-11: Fix to "decimal" handling, github project (thanks Ian Wright!)

binaryserializationanalysis's People

Contributors

taok avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.