class_docstr: Serializer that writes objects as a stream of (length, data) pairs,
  where length is a 32-bit integer and data is length bytes.
class_docstr_tok: ["Serializer","that","writes","objects","as","a","stream","of","(","length",",","data",")","pairs",",","where","length","is","a","32-bit","integer","and","data","is","length","bytes","."]
code: def _read_with_length(self, stream):
      length = read_int(stream)
      if length == SpecialLengths.END_OF_DATA_SECTION:
          raise EOFError
      elif length == SpecialLengths.NULL:
          return None
      obj = stream.read(length)
      if len(obj) < length:
          raise EOFError
      return self.loads(obj)
  
imports: import pickle
  import struct
  from abc import abstractmethod
  from io import BytesIO
  from itertools import chain
  from typing import TypeVar, Iterable
  from pyflink.common.serializer import TypeSerializer
label_desc: Use image node_id 4 for calling the VarLengthDataSerializer obj's underlying member method code with example usage: obj._read_with_length(stream) and returns: self, None