⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdprecordtemp.cs

📁 蓝牙传输控件,用于蓝牙文件上传和下载。芯片只要选用crs
💻 CS
字号:
using System;

namespace bluetoothX
{
	internal class SdpRecordTemp
	{
		byte[] m_data;

		public SdpRecordTemp()
		{
			m_data = new byte[] {0x35,0x27,0x09,0x00,0x01,0x35,0x11,0x1c,
									0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
									0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
									0x09,0x00,0x04,0x35,0x0c,0x35,0x03,0x19,
									0x01,0x00,0x35,0x05,0x19,0x00,0x03,0x08,
									0x00};
		}

		public Guid Service
		{
			get
			{
				byte[] guidbytes = new byte[16];
				Buffer.BlockCopy(m_data, 8, guidbytes, 0, 16);
				return new Guid(guidbytes);
			}
			set
			{
				Buffer.BlockCopy(value.ToByteArray(), 0, m_data, 8, 16);
			}
		}

		public byte Channel
		{
			get
			{
				return m_data[m_data.Length - 1];
			}
			set
			{
				m_data[m_data.Length - 1] = value;
			}
		}

		public byte[] ToByteArray()
		{
			return m_data;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -