public static object ReadObject(this MemoryBufferReader reader, DcPackerInterface pi) { var spanReader = new SpanBufferReader(reader.RemainingData.Span); var value = spanReader.ReadObject(pi); reader.SkipBytes(spanReader.Offset); return(value); }