Wombat.MamaMsg.tryOpaque C# (CSharp) Метод

tryOpaque() публичный Метод

Try to get an opaque field.
public tryOpaque ( string name, ushort fid, byte &result ) : bool
name string
fid ushort
result byte
Результат bool
        public bool tryOpaque(
			string name, 
			ushort fid,
			ref byte[] result)
        {
            EnsurePeerCreated();
            IntPtr array = IntPtr.Zero;
            uint size = 0;
            int code = NativeMethods.mamaMsg_getOpaque(nativeHandle, name, fid,ref array, ref size);
            if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
            {
                return false;
            }
            byte[] val = new byte[size];
            Marshal.Copy(array, val, 0, (int)size);
            result = val;
            return true;
        }

Same methods

MamaMsg::tryOpaque ( Wombat.MamaFieldDescriptor descriptor, byte &result ) : bool
MamaMsg