/// <summary> /// Load resource from stream. May be called from a worker thread. Return true if successful. /// </summary> public override bool BeginLoad(MemoryBuffer source) { Runtime.ValidateRefCounted(this); return(ValueAnimation_BeginLoad_MemoryBuffer(handle, (object)source == null ? IntPtr.Zero : source.Handle)); }
/// <summary> /// Save resource. Return true if successful. /// </summary> public override bool Save(MemoryBuffer dest) { Runtime.ValidateRefCounted(this); return(ValueAnimation_Save_MemoryBuffer(handle, (object)dest == null ? IntPtr.Zero : dest.Handle)); }
/// <summary> /// Set data of one layer from a stream. Return true if successful. /// </summary> public bool SetData(uint layer, MemoryBuffer source) { Runtime.ValidateRefCounted(this); return(Texture2DArray_SetData0_MemoryBuffer(handle, layer, (object)source == null ? IntPtr.Zero : source.Handle)); }