class_docstr: Streaming Bytes IO buffer. Data are dropped when read.
class_docstr_tok: ["Streaming","Bytes","IO","buffer",".","Data","are","dropped","when","read","."]
docstr: Pop the oldest byte string. It does not necessary return the requested amount
docstr_tok: ["Pop","the","oldest","byte","string",".","It","does","not","necessary","return","the","requested","amount"]
code: def pop(self, n):
      """Pop the oldest byte string. It does not necessary return the requested amount"""
      if not self._buffer:
          return b""
      if len(self._buffer[0]) <= n:
          return self._buffer.pop(0)
      ret = self._buffer[0][:n]
      self._buffer[0] = self._buffer[0][n:]
      return ret
  
imports: import io
  from typing import Iterator, List, Optional
  import torch
  from torch import Tensor
  from torio.io._streaming_media_decoder import _get_afilter_desc, StreamingMediaDecoder
  from torio.io._streaming_media_encoder import CodecConfig, StreamingMediaEncoder
label_desc: Use image node_id 3 for calling the _StreamingIOBuffer obj's underlying member method code with example usage: obj.pop(n) and returns: ret, bytes, self