private short GetSimpleReferenceProc(IntPtr descriptor, ref PIDescriptorSimpleReference data) { ReadDescriptorState state = readDescriptors[descriptor]; #if DEBUG DebugUtils.Ping(DebugFlags.DescriptorParameters, string.Format("key: 0x{0:X4}", state.currentKey)); #endif AETEValue item = state.items[state.currentKey]; data = (PIDescriptorSimpleReference)item.Value; return(PSError.noErr); }
private short PutSimpleReferenceProc(IntPtr descriptor, uint key, ref PIDescriptorSimpleReference data) { #if DEBUG DebugUtils.Ping(DebugFlags.DescriptorParameters, string.Format("key: {0:X4}", key)); #endif try { writeDescriptors[descriptor].AddOrUpdate(key, new AETEValue(DescriptorTypes.ObjectReference, GetAETEParamFlags(key), 0, data)); } catch (OutOfMemoryException) { return(PSError.memFullErr); } return(PSError.noErr); }