public void SetChildValueNull (string name){ SkiaApi.sk_runtime_effect_builder_set_child_nullptr (Handle, name);}public void SetChildValue (string name, SKShader shader){ SkiaApi.sk_runtime_effect_builder_set_child_shader (Handle, name, shader.Handle);}public void SetChildValue (string name, SKColorFilter colorFilter){ SkiaApi.sk_runtime_effect_builder_set_child_color_filter (Handle, name, colorFilter.Handle);}public void SetChildValue (string name, SKBlender blender){ SkiaApi.sk_runtime_effect_builder_set_child_blender (Handle, name, blender.Handle);}
IntPtr
class MemoryWriter : TypeCheckingBinaryWriter{ public long Position { get => BaseStream.Position; set => BaseStream.Position = value; } public long Length => BaseStream.Length; public MemoryWriter(Stream output) : base(output) { } public MemoryWriter(Stream output, bool leaveOpen) : base(output, Encoding.UTF8, leaveOpen) { } public MemoryWriter() : this(new MemoryStream(), false) { }
MemoryWriter memory = new();var old = memory.BaseStream.Position;memory.BaseStream.Position = 0;// keep openMemoryReader reader = new(memory.BaseStream, true);while (reader.BaseStream.Position != reader.BaseStream.Length){ // ...}reader.Dispose();memory.BaseStream.Position = old;
MemoryStream