Giter Site home page Giter Site logo

blob's Introduction

blob

simple manipulation of raw memory

This was a cute little project testing type-driven manipulation of data at the byte level using C++11. The main reason this was created was to really test my (somewhat beginner, at the time) understanding of what was going on at a very low level in memory. The Blob class template represents a block of raw data which can be read from or written to simply by specifying the position to read from / write to as well as the type of data being manipulated.

I developed a greater appreciation for pointers, pointer arithmetic, and references, as well as how to freely - and admittedly, unsafely - convert between pointer and reference types. Thankfully, the unsafe operations are done somewhat safely behind the guise of the Blob class.

The main thing I learned is that memory management is something best left to the compiler to figure out. Doing this sort of thing by hand is an easy way to end up with corrupt data or unexpected program crashes should you try to read or write invalid data. It was a success in that it does exactly what I wanted it to do, but what I wanted it to do was nothing more than a fun exercise.

blob's People

Contributors

jali-clarke avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

jackbro

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.