Search

March 03, 2023
General »
...sucks for configuration. I want it to serialize to a struct I specify.

I'm...
February 21, 2023
Learn »
...v.serialize(this);
		}
	}

	struct OldName
	{
		string name;
	}

	struct Serializable
	{
		@OldName("ifield")
		int intField;

		void serialize...
January 23, 2023
General »
...every type can be serialized, normally you serialize a DTO - a type designed for serialization...
January 19, 2023
General »
...in the type you are trying to serialize.

@safe and const are the one that...
January 19, 2023
General »
...figure out Mir Ion so I can serialize some data, and oh boy is it...
December 30, 2022
Learn »
...documentation).

So in asdf we could just serialize the json and it will automatically round...
December 11, 2022
General »
...requires maintenance. With macros, if you could serialize/deserialize classes without any extra code, it...
August 19, 2022
Learn »
...3] = cast(ubyte)(value);
    return bytes;
}

void serialize(out ubyte[PAGE_SIZE] outbuf)
{
    ubyte[] buf...
August 15, 2022
Learn »
...header.tupleCount++;
        header.freeSpacePointer -= tuple.sizeof;
    }

    void serialize(OutBuffer buf)
    {
        with (header)
        {
            buf.write(pageId...
July 04, 2022
Learn »
You can "inherit" from a struct using `alias this`:

```d
struct CustomStruct
{
    SumType!(A, B...
1 2 3 4
Next ›   Last »