You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Create a FastBufferReader from an ArraySegment that uses the ArraySegment.Offset for the reader's offset.
146
+
///
147
+
/// A new buffer will be created using the given allocator and the value will be copied in.
148
+
/// FastBufferReader will then own the data.
149
+
///
150
+
/// Allocator.None is not supported for byte[]. If you need this functionality, use a fixed() block
151
+
/// and ensure the FastBufferReader isn't used outside that block.
152
+
/// </summary>
153
+
/// <param name="buffer">The buffer to copy from</param>
154
+
/// <param name="copyAllocator">The allocator type used for internal data when copying an existing buffer if other than Allocator.None is specified, that memory will be owned by this FastBufferReader instance</param>
155
+
/// <param name="length">The number of bytes to copy (all if this is -1)</param>
/// Create a FastBufferReader from an ArraySegment that uses the ArraySegment.Offset for the reader's offset and the ArraySegment.Count for the reader's length.
172
+
///
173
+
/// A new buffer will be created using the given allocator and the value will be copied in.
174
+
/// FastBufferReader will then own the data.
175
+
///
176
+
/// Allocator.None is not supported for byte[]. If you need this functionality, use a fixed() block
177
+
/// and ensure the FastBufferReader isn't used outside that block.
178
+
/// </summary>
179
+
/// <param name="buffer">The buffer to copy from</param>
180
+
/// <param name="copyAllocator">The allocator type used for internal data when copying an existing buffer if other than Allocator.None is specified, that memory will be owned by this FastBufferReader instance</param>
0 commit comments