示例#1
0
        private byte[] GetData()
        {
            const string ownName = nameof(ExampleCustomMessage);

            byte[] data = new byte[BinaryUtils.StringSize(ownName) + 2 * BinaryUtils.BinarySizeOf <TransformStructure>()];

            int idx = 0;

            idx += BinaryUtils.WriteStringToBytes(ownName, data, idx);
            idx += BinaryUtils.WriteStructToBytes(TransformStructure.IDENTITY, data, idx);
            idx += BinaryUtils.WriteStructToBytes(new TransformStructure(transform), data, idx);

            return(data);
        }