VBufferEditor.CreateFromBuffer<T>(VBuffer<T>) 方法

定義

VBufferEditor<T>使用與 相同的圖案 (長度和密度建立 ,) 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)

類型參數

T

參數

destination
VBuffer<T>

目的緩衝區。 請注意,產生的 VBufferEditor<T> 會假設取得傳入物件之這個 的擁有權,因此 VBuffer<T> 不應該再次使用任何傳入做為此參數的內容,因為其基礎緩衝區可能會重複使用。

傳回

適用於