2017-03-12 15:13:28 +01:00
|
|
|
class BufferFullException(Exception):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BufferEmptyException(Exception):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
2019-11-07 08:58:16 -05:00
|
|
|
class CircularBuffer:
|
2017-10-03 13:23:32 +02:00
|
|
|
def __init__(self, capacity):
|
2017-03-12 15:13:28 +01:00
|
|
|
pass
|
2018-02-20 01:35:00 +08:00
|
|
|
|
|
|
|
|
def read(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def write(self, data):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def overwrite(self, data):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def clear(self):
|
|
|
|
|
pass
|