Coder Social home page Coder Social logo

skyformat99 / bitfile-cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaeldipperstein/bitfile-cpp

0.0 2.0 0.0 86 KB

bitfile-cpp: An ISO C++ library implementing bitwise reading and writing for sequential files

License: GNU Lesser General Public License v3.0

Makefile 1.76% C++ 98.24%

bitfile-cpp's Introduction

DESCRIPTION:
-----------
This archive contains an ISO C++ class implementing bitwise reading and
writing for sequential files.  This class is intended to be easy to follow
and expand upon, though it may be used without an understanding of its
implementation.

FILES
-----
bitfile.cpp     - Class implementing bitwise reading and writing for
                  sequential files.
bitfile.h       - Header for bitfile class.
COPYING         - GNU General Public License v3
COPYING.LESSER  - GNU Lesser General Public License v3
Makefile        - makefile for this project (assumes gcc compiler and GNU make)
README          - this file
sample.cpp      - Program demonstrating how to use the bitfile class.

BUILDING
--------
To build these files with GNU make and gcc, simply enter "make" from the
command line.

USAGE
-----
sample.cpp demonstrates usage of each of the bitfile methods.

HISTORY
-------
08/04/04 - Initial release
06/21/05 - Corrected GetBits/PutBits error that accessed an extra byte
           when given an integral number of bytes.
12/08/05 - Added methods to get/put bits from/to integer types.
02/09/06 - Corrected bug in GetBit discovered by Peter Husemann.  A
           0xFF byte may be recognized as an EOF.
06/03/06 - Corrected destructor for writing bitfile objects.
08/26/07 - All methods that don't modify the calling object have been made
           const to increase functionality of const bit_array_c.
           Updated license to LGPL v3.
01/26/07 - Added ByteAlign and FlushOutput methods.
07/22/09 - Zeros out MS bits in int returned by GetChar when not returning
           an EOF.

TODO
----
- Consider adding extra count so that files ending in incomplete bytes
  may be appended to starting with the incomplete byte instead of the
  next whole byte.
- Test on platforms with character lengths other than 8 bits.

AUTHOR
------
Michael Dipperstein ([email protected])

bitfile-cpp's People

Watchers

 avatar  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.