Sha256: 31aab8f1c8c44c030057d465f1d2c1ac1fc01b7e4c82a24bf689db2461284f1e

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

/////////////////////////////////////////////////////////////////////////
//
// bitstream.h --a part of libdecodeqr
//
// Copyright(C) 2007 NISHI Takao <zophos@koka-in.org>
//                   JMA  (Japan Medical Association)
//                   NaCl (Network Applied Communication Laboratory Ltd.)
//
// This is free software with ABSOLUTELY NO WARRANTY.
// You can redistribute and/or modify it under the terms of LGPL.
//
// $Id: bitstream.h 36 2007-02-21 23:22:03Z zophos $
//
#ifndef __QR_BITSTREAM__
#define __QR_BITSTREAM__

#include <memory.h>

#ifndef NULL
#define NULL 0
#endif

namespace Qr{
    class BitStream{
    public:
        unsigned char *data;
        int byte_size;
        int bit_size;

    private:
        int _pos;

    public:
        BitStream();
        BitStream(void *src,int size);
        ~BitStream();

        bool is_eod();
        int position();
        int seek(int pos);
        void rewind();
        
        unsigned char *read(int read_bits);
        int read(void *dst,int buf_size,int bitsize);
    };
};

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qrtools-1.0.0 ext/qrtools/bitstream.h
qrtools-1.0.1 ext/qrtools/bitstream.h