Changeset 29:54c2d451f8a0 in xplcommon for src/xplcommon/Buffer.h


Ignore:
Timestamp:
01/02/13 11:37:15 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented a blocking stream and a corresponding trst program

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/Buffer.h

    r5 r29  
    9696
    9797    /**
     98     * Get whether the buffer is empty or not.
     99     */
     100    bool isEmpty() const;
     101
     102    /**
    98103     * Get the available capacity in the buffer.
    99104     */
     
    172177{
    173178    return length;
     179}
     180
     181//------------------------------------------------------------------------------
     182
     183inline bool Buffer::isEmpty() const
     184{
     185    return length==0;
    174186}
    175187
Note: See TracChangeset for help on using the changeset viewer.