marshalling Questions
4
I'm trying to call the following C++ function that's wrapped up into a DLL:
unsigned char * rectifyImage(unsigned char *pimg, int rows, int cols)
My import statement looks like the following:
...
Allo asked 6/8, 2010 at 18:6
1
Solved
I was able to succesfully use the information on this page to digitally sign a file using an x509 certificate (.pfx file) using the following code:
const Int32 CRYPTUI_WIZ_NO_UI = 1;
const Int32 ...
Elegize asked 31/8, 2023 at 15:25
3
I have a following piece of code in which I am trying to add an array to a redis set but it is giving me an error.
package main
import (
"encoding/json"
"fmt"
"github.com/go-redis/redis"
)
t...
Sharlenesharline asked 30/3, 2020 at 6:34
3
I'm marshaling objects into an XML file. How can I add comments into that XML file
ObjectFactory factory = new ObjectFactory();
JAXBContext jc = JAXBContext.newInstance(Application.class);
Marshal...
Tompion asked 5/6, 2013 at 16:44
12
Solved
I'm having app crash on resume because of Unmarshalling exception. I've checked all the Serializables have constructor with no parameters and even checked all the serializables using ObjectStream (...
Rabe asked 18/2, 2014 at 5:17
4
Solved
In Golang, is there a way to make the generic encoding/json Marshal to use a different layout when Marshaling the time.Time fields?
Basically I have this struct:
s := {"starttime":time.Now(), "na...
Gourd asked 9/12, 2013 at 16:16
2
Solved
I get the error WriteValueBytes can only write while positioned on a Element or Value but is positioned on a TopLevel when trying to create a custom mashler/unmashler for bson.M
I have a custom ty...
Assizes asked 17/4, 2020 at 18:0
4
Solved
I wish to use the "encoding/json" package to marshal a struct declared in one of the imported packages of my application.
Eg.:
type T struct {
Foo int
}
Because it is imported, all available (...
Kraul asked 27/7, 2012 at 18:46
3
Solved
I have searched a lot on the Internet, but I haven't been able to find the solution to send an object over the socket and receive it as is. I know it needs pickling which I have already done. And t...
Dup asked 20/11, 2017 at 12:13
1
I need to create a dynamic .NET delegate with specially marshalled parameters (e.g. [MarshalAs(UnamangedType.LPWStr)]) at runtime using System.Reflection.Emit. This requires me to create a type inh...
Brogle asked 29/7, 2020 at 17:27
6
Solved
Whenever I call ElementTree.tostring(e), I get the following error message:
AttributeError: 'Element' object has no attribute 'getroot'
Is there any other way to convert an ElementTree object in...
Temple asked 8/3, 2013 at 22:13
4
Solved
Given a go struct
type Company struct {
ID int `json:"id"`
Abn sql.NullString `json:"abn,string"`
}
when marshalled with something like this
company := &Company{}
company.ID = 68
company...
Swisher asked 22/8, 2018 at 7:0
16
I am getting started with Object-Oriented Programming (OOP) and would like to know: what is the meaning of serialization in OOP parlance?
Hastie asked 11/3, 2009 at 5:3
2
Solved
I have some of unmanaged C++ dynamic library and C# GUI application, using it. I want to pass callback via parameters in some library provided methods. Is it possible to pass a callback to unmanage...
Salish asked 16/7, 2014 at 8:17
12
Solved
In PHP there is func_num_args and func_get_args, is there something similar for JavaScript?
Britannic asked 8/1, 2011 at 8:38
1
Solved
I'm new to golang generics and have the following setup.
I've gathered loads of different kinds of reports.
Each report has enclosing fields
So I wrapped it in a ReportContainerImpl
I've used a t...
Bench asked 21/4, 2022 at 13:12
2
Unmanaged code calls my functions. In first function I should pass back pointer to my managed object. Sometimes later some of my other functions get called with that same pointer as one of paramete...
Parsimonious asked 31/7, 2011 at 12:57
3
Solved
Assuming we have two yaml files
master.yaml
someProperty: "someVaue"
anotherProperty: "anotherValue"
override.yaml
someProperty: "overriddenVaue"
Is it possible to unmarshall, merge, and th...
Mandi asked 21/8, 2018 at 11:39
3
Solved
When should we use this attribute and why do we need it? For example, if the native function in c takes as a parameter a pointer to unsigned char, and I know that it's needed to fulfill the array o...
Legitimize asked 16/6, 2011 at 3:41
2
I have a Map-Reduce job with a mapper which takes a record and converts it into an object, an instance of MyObject, which is marshalled to JSON using Jackson. The value is just another Text field i...
See asked 18/7, 2014 at 19:42
2
Solved
The xml file consists of two elements. Those elements have the same structure except for one element name. I tried to set a value to the XMLName property, but that didn't work.
Xml:
<!-- first e...
Immensity asked 11/11, 2014 at 14:40
9
Solved
In my serialiser/deserialiser, I have the following snippet:
if (element_type.IsValueType && collection_type.IsArray)
{
try
{
GCHandle h = GCHandle.Alloc(array_object, GCHandleType.Pi...
Choctaw asked 13/5, 2012 at 19:42
3
Solved
I have a service that loads a child AppDomain and then starts a thread running in it. It needs an AppDomain because it dynamically generates and loads some code and I need to be able to restart it ...
Clove asked 30/3, 2011 at 23:55
3
Solved
I have struct
type tySurvey struct {
Id int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
I do json.Marshal write JSON bytes in HTML page. jQuery modifies name field in object ...
Manaus asked 16/1, 2014 at 1:27
4
Solved
I would like to marshal in and out of x-www-form-urlencoding similar to how you can do it with json or xml. Is there an existing package to do this, or are there any documents on how to implement o...
Kicksorter asked 22/3, 2014 at 17:46
1 Next >
© 2022 - 2024 — McMap. All rights reserved.