Using AMFProp_Decode everywhere -tested and working

This commit is contained in:
saxon 2018-08-15 20:46:38 +09:30
parent 1e6bf462da
commit aef3cd3001
1 changed files with 4 additions and 2 deletions

View File

@ -2802,8 +2802,10 @@ func C_AMF_Decode(obj *C.AMFObject, pBuffer *byte, nSize int32, bDecodeName int3
continue
}
// TODO port AMFProp_Decode
nRes = int32(C.AMFProp_Decode(&prop, (*C.char)(unsafe.Pointer(pBuffer)),
C.int(nSize), C.int(bDecodeName)))
nRes = int32(C_AMFProp_Decode(&prop, (*byte)(unsafe.Pointer(pBuffer)),
int32(nSize), int32(bDecodeName)))
// nRes = int32(C.AMFProp_Decode(&prop, (*C.char)(unsafe.Pointer(pBuffer)),
// C.int(nSize), C.int(bDecodeName)))
if nRes == -1 {
bError = 1
break