public virtual bool TryGetDescriptor(BleUuid uuid, out BleDescriptor descriptor) { foreach (var d in GetDescriptors()) { if (d.Uuid == uuid) { descriptor = d; return(true); } } descriptor = null; return(false); }
public abstract void WriteDescriptor(BleDescriptor descriptor, byte[] value, int offset, int count, BleRequestFlags requestFlags);
public void WriteDescriptor(BleDescriptor descriptor, byte[] value, int offset, int count) { WriteDescriptor(descriptor, value, offset, count, RequestFlags); }
public void WriteDescriptor(BleDescriptor descriptor, byte[] value) { Throw.If.Null(value, "value"); WriteDescriptor(descriptor, value, 0, value.Length); }
public abstract byte[] ReadDescriptor(BleDescriptor descriptor, BleRequestFlags requestFlags);
public byte[] ReadDescriptor(BleDescriptor descriptor) { return(ReadDescriptor(descriptor, RequestFlags)); }