Wombat.MamaMsg.tryVectorU8 C# (CSharp) Method

tryVectorU8() public method

Try to get a vector of unsigned 8 bit integers.
public tryVectorU8 ( string name, ushort fid, byte &result ) : bool
name string
fid ushort
result byte
return bool
        public bool tryVectorU8(
			string name, 
			ushort fid,
			ref byte[] result)
        {
            EnsurePeerCreated();
            IntPtr array = IntPtr.Zero;
            uint size = 0;
            int code = NativeMethods.mamaMsg_getVectorU8(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::tryVectorU8 ( MamaFieldDescriptor descriptor, byte &result ) : bool
MamaMsg