internal MessageReader(Func <BasicDeserializer, T> readAction, Func <BasicDeserializer, int, T> lenLimitedReadAction, Stream stream, bool ownStream)
 {
     this.readAction           = readAction;
     this.lenLimitedReadAction = lenLimitedReadAction;
     this.stream     = stream;
     this.serializer = new BasicDeserializer(stream);
     this.ownStream  = ownStream;
 }
        public static IEnumerable <byte[]> ReadLenDelimited(Stream stream)
        {
            var ser = new BasicDeserializer(stream);

            return(ser.ReadLenDelimited());
        }
 public static IEnumerable<byte[]> ReadLenDelimited(Stream stream)
 {
     var ser = new BasicDeserializer(stream);
     return ser.ReadLenDelimited();
 }