Share via


VBufferEditor.CreateFromBuffer<T>(VBuffer<T>) Method

Definition

Creates a VBufferEditor<T> with the same shape (length and density) as the destination.

public static Microsoft.ML.Data.VBufferEditor<T> CreateFromBuffer<T> (scoped ref Microsoft.ML.Data.VBuffer<T> destination);
public static Microsoft.ML.Data.VBufferEditor<T> CreateFromBuffer<T> (ref Microsoft.ML.Data.VBuffer<T> destination);
static member CreateFromBuffer : VBuffer -> Microsoft.ML.Data.VBufferEditor<'T>
Public Shared Function CreateFromBuffer(Of T) (ByRef destination As VBuffer(Of T)) As VBufferEditor(Of T)

Type Parameters

T

Parameters

destination
VBuffer<T>

The destination buffer. Note that the resulting VBufferEditor<T> is assumed to take ownership of this passed in object, and so whatever VBuffer<T> was passed in as this parameter should not be used again, since its underlying buffers are being potentially reused.

Returns

Applies to