Unsigned DeviceID,
Char * cFrontImgBuf,
Char * cRearImgBuf,
Int * iFrontLen,
Int * iRearLen)
Parameter description:
DeviceID: [enter] USB devices, the internal ID values range 0-16,
Save cFrontImgBuf: (output) of positive image data pointer, can't be empty,
Save the opposite cRearImgBuf: (output) image data pointer, can't be empty,
IFrontLen: [output] positive image data length,
IRearLen: [output] negative image data length,
help to c # code! Genuflect is begged!!!!!
CodePudding user response:
Int SavePicToMemory (Uint DeviceID,
Ref intptr cFrontImgBuf,
Ref intptr cRearImgBuf,
Ref int iFrontLen,
Ref int iRearLen)
CodePudding user response:
Call, should beIntptr cFrontImgBuf=intprt. Zero;
Intptr cRearImgBuf=intprt. Zero;
Int iFrontLen=0;
Int iRearLen=0;
Int SavePicToMemory (1234, ref cFrontImgBuf, ref cRearImgBuf, ref iFrontLen, ref iRearLen)
Byte [] FrontImgData=https://bbs.csdn.net/topics/new byte [iFrontLen]
Marshal. Copy (cFrontImgBuf FrontImgData, 0, iFrontLen);
CodePudding user response:
Char * and ref intptr don't look right?CodePudding user response:
Don't know whether you mean it, really can not empty what code restrictions
CodePudding user response:
Tried,, do not!!!!!!CodePudding user response:
Char *, is actually a pointer, he can be any thingsGenerally when we translation is based on the context translation
He said, you give I preach a string, we write is a string
And he said, I return a string, we write is stringbuild
You here is that the meaning of context, he returned to the picture information data
We think he will give you byte [], and tell you the length of the byte array
Ref intptr is actually returns the byte array index 0 of the element pointer
Behind so we use the copy to copy from the memory from the pointer he start his designated the array length to our