openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

Add read/write methods for MemoryBuffer: vec2, vec3, nat3, quat, mats, bool, etc #448

Open XertroV opened 5 months ago

XertroV commented 5 months ago

MemoryBuffer only supports ints, floats, etc at the moment. (And strings) It'd be nice if I didn't need wrapper functions to construct the other types.

Also a length prefixed string read/write might be nice. That way you don't need to know the size of a string to read one (which fits well with the typical buffer pattern of uint8 x = buf.ReadUint8(); float y = buf.ReadFloat(); and so on.