Bitcoin full node and query server

May 1, 2023

View in context in the libbitcoin Slack #general mirror.

evoskuil05:23
So tomorrow is implementation of the light streams:
simple_ostream

    exception type: OStream::failure
    position type (signed): OStream::pos_type

    enum flags: OStream::rdstate
    {
        goodbit,
        eofbit,
        failbit,
        badbit
    }

    OStream::pos_type tellp();
    OStream::rdstate rdstate();
    void setstate(OStream::rdstate);
    void write(const char*, OStream::pos_type);
    
    void flush();

simple_istream

    exception type: IStream::failure
    position type (signed): IStream::pos_type

    enum flags: IStream::rdstate
    {
        goodbit,
        eofbit,
        failbit,
        badbit
    }

    enum flags: IStream::seekdir
    {
        beg,
        end,
        cur
    }

    IStream::pos_type tellg();
    IStream::rdstate rdstate();
    void setstate(IStream::rdstate);
    void read(char*, IStream::pos_type);
    
    int peek();
    void clear();
    IStream::pos_type seekg(IStream::pos_type, IStream::seekdir);