nntp.fifo¶
A reasonably efficient FIFO buffer. Copyright (C) 2013-2020 Byron Platt
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Classes¶
Module Contents¶
- class nntp.fifo.Fifo(data: T | None = None)¶
Bases:
Generic[T]- empty: T¶
- eol: T¶
- buf: T¶
- buflist: list[T] = []¶
- pos = 0¶
- __len__() int¶
- __iter__() typing_extensions.Self¶
- __next__() T¶
- __discard() None¶
- __append() None¶
- clear() None¶
- write(data: T) None¶
- read(length: int = 0) T¶
- readline() T¶
- readuntil(token: T, size: int = 0) tuple[bool, T]¶
- peek(length: int = 0) T¶
- peekline() T¶
- peekuntil(token: T, size: int = 0) tuple[bool, T]¶