src/SDL_dataqueue.h
changeset 11582 cc0b1273a381
parent 10743 8ccdeceaae6d
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11581:49393a9dffe4 11582:cc0b1273a381
    29 SDL_DataQueue *SDL_NewDataQueue(const size_t packetlen, const size_t initialslack);
    29 SDL_DataQueue *SDL_NewDataQueue(const size_t packetlen, const size_t initialslack);
    30 void SDL_FreeDataQueue(SDL_DataQueue *queue);
    30 void SDL_FreeDataQueue(SDL_DataQueue *queue);
    31 void SDL_ClearDataQueue(SDL_DataQueue *queue, const size_t slack);
    31 void SDL_ClearDataQueue(SDL_DataQueue *queue, const size_t slack);
    32 int SDL_WriteToDataQueue(SDL_DataQueue *queue, const void *data, const size_t len);
    32 int SDL_WriteToDataQueue(SDL_DataQueue *queue, const void *data, const size_t len);
    33 size_t SDL_ReadFromDataQueue(SDL_DataQueue *queue, void *buf, const size_t len);
    33 size_t SDL_ReadFromDataQueue(SDL_DataQueue *queue, void *buf, const size_t len);
       
    34 size_t SDL_PeekIntoDataQueue(SDL_DataQueue *queue, void *buf, const size_t len);
    34 size_t SDL_CountDataQueue(SDL_DataQueue *queue);
    35 size_t SDL_CountDataQueue(SDL_DataQueue *queue);
    35 
    36 
    36 /* this sets a section of the data queue aside (possibly allocating memory for it)
    37 /* this sets a section of the data queue aside (possibly allocating memory for it)
    37    as if it's been written to, but returns a pointer to that space. You may write
    38    as if it's been written to, but returns a pointer to that space. You may write
    38    to this space until a read would consume it. Writes (and other calls to this
    39    to this space until a read would consume it. Writes (and other calls to this