Exemple #1
0
        private static void Write(ref Felica felica, string text)
        {
            byte[] text_bytes = GetBytes(text);

            for (int i = 0; i < FELICA_LITE_S_DATA_LENGTH / 0x10; i++)
            {
                byte[] data = new byte[0x10];
                for (int j = 0; j < 0x10; j++)
                {
                    if ((i << 4) + j < text_bytes.Length)
                    {
                        data[j] = text_bytes[(i << 4) + j];
                    }
                    else
                    {
                        data[j] = 0x00;
                    }
                }

                felica.WriteWithoutEncryption(0x0009, i, data);
            }
        }