androidui
androidui
Explore posts from servers
CC#
Created by androidui on 1/25/2024 in #help
thread-safe concurrent task compilation system
anyone ?
2 replies
CC#
Created by AceChewy on 1/21/2024 in #help
✅ Physics simulator
i would suggest working with existing physics libraries
13 replies
CC#
Created by androidui on 11/29/2022 in #help
❔ send socket to UNRELATED process (NO FORKING, NO CHILD PROCESSES)
basically i need to send a HANDLE from one process to another process
5 replies
CC#
Created by androidui on 9/13/2022 in #help
explicit null param
for this
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);
}
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);
}
7 replies
CC#
Created by androidui on 9/13/2022 in #help
explicit null param
could i use IntPtr as an overload for null ?
7 replies
CC#
Created by androidui on 9/13/2022 in #help
explicit null param
rip
7 replies
CC#
Created by androidui on 9/3/2022 in #help
raw string vs verbatin string [Answered]
🙂
22 replies
CC#
Created by androidui on 9/1/2022 in #help
stack
🙂
4 replies
CC#
Created by androidui on 8/19/2022 in #help
BinaryReader and BinaryWriter api behaviour incompatibility
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)
{
}
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 open
MemoryReader reader = new(memory.BaseStream, true);

while (reader.BaseStream.Position != reader.BaseStream.Length)
{
// ...
}
reader.Dispose();
memory.BaseStream.Position = old;
MemoryWriter memory = new();

var old = memory.BaseStream.Position;
memory.BaseStream.Position = 0;

// keep open
MemoryReader reader = new(memory.BaseStream, true);

while (reader.BaseStream.Position != reader.BaseStream.Length)
{
// ...
}
reader.Dispose();
memory.BaseStream.Position = old;
6 replies
CC#
Created by androidui on 8/19/2022 in #help
BinaryReader and BinaryWriter api behaviour incompatibility
hmm alright im using a MemoryStream for both output and input
6 replies
CC#
Created by androidui on 8/19/2022 in #help
serializer runtime type checking?
18 replies
CC#
Created by androidui on 8/19/2022 in #help
serializer runtime type checking?
something like this, which the Reader will verify when reading and error if it detects it is attempting to read an incorrect type and incorrect length
18 replies
CC#
Created by androidui on 8/19/2022 in #help
serializer runtime type checking?
anyway are there any kind of serializers that do this kind of checking?
18 replies
CC#
Created by androidui on 8/19/2022 in #help
serializer runtime type checking?
but i CAN manually serialize it
18 replies
CC#
Created by androidui on 8/19/2022 in #help
serializer runtime type checking?
(eg i cannot simply make it [Serializable])
18 replies
CC#
Created by androidui on 8/19/2022 in #help
serializer runtime type checking?
cus i dont have access to the source code
18 replies