Lines Matching refs:instance
53 /// Initialize an instance with a coded output stream.
54 /// This approach is faster than using a constructor because the instance to initialize is passed by reference
58 public static void Initialize(CodedOutputStream codedOutputStream, out WriteBufferHelper instance)
60 instance.bufferWriter = null;
61 instance.codedOutputStream = codedOutputStream;
65 /// Initialize an instance with a buffer writer.
66 /// This approach is faster than using a constructor because the instance to initialize is passed by reference
70 public static void Initialize(IBufferWriter<byte> bufferWriter, out WriteBufferHelper instance, out Span<byte> buffer)
72 instance.bufferWriter = bufferWriter;
73 instance.codedOutputStream = null;
78 /// Initialize an instance with a buffer represented by a single span (i.e. buffer cannot be refreshed)
79 /// This approach is faster than using a constructor because the instance to initialize is passed by reference
83 public static void InitializeNonRefreshable(out WriteBufferHelper instance)
85 instance.bufferWriter = null;
86 instance.codedOutputStream = null;