Marshalling is the process of transforming the memory representation of an object to a data format suitable for storage or transmission
I made a custom type for my IDs: type ID uint func (id ID) MarshalJSON() ([]byte, error) { e, _ := HashIDs.Encode([]…
json go marshalling hashidsI've written custom versions of MarshalJSON and UnmarshalJSON. My UnmarshalJSON gets called the way I want it to, but I …
json go marshallingI have some struct like this struct MyStruct { public int field1; public int field2; public int field3; } and I have …
c# arrays marshalling intptrConsider this code: public enum MyEnum { V1, V2, V3 } int size = Marshal.SizeOf(typeof(MyEnum)); it throws the exception: An …
c# .net enums marshallingI understand all about how to use XMLAdapters to convert unmappable types, or just to change how certain objects are …
java xml jaxb marshallingI am having some trouble marshaling a pointer to an array of strings. It looks harmless like this: typedef struct { …
c# pinvoke unmanaged marshallingI'm attempting to follow the example located here but get an javax.xml.bind.PropertyException. I receive this exception because …
java jaxb eclipselink marshalling moxyI have a method I want to import from a DLL and it has a signature of: BOOL GetDriveLetter(OUT …
c# .net pinvoke marshalling dllimportI have the following C++ function definition, which I am trying to call through PInvoke from managed code: bool FooBar(…
c# c++ pinvoke marshalling intptrSorry for the verbose introduction that follows. I need insight from someone knowing P/Invoke internals better than I do. …
c# pinvoke marshalling structure function-pointers