コード例 #1
0
            public DualStringArray(StringBinding stringBinding, SecurityBinding securityBinding)
            {
                NumEntries     = (ushort)((stringBinding.GetBytes().Length + securityBinding.GetBytes().Length) / 2);
                SecurityOffset = (ushort)(stringBinding.GetBytes().Length / 2);

                StringBinding   = stringBinding;
                SecurityBinding = securityBinding;
            }
コード例 #2
0
            internal void Save(BinaryWriter bw)
            {
                byte[] stringBinding   = StringBinding.GetBytes();
                byte[] securityBinding = SecurityBinding.GetBytes();

                bw.Write((ushort)((stringBinding.Length + securityBinding.Length) / 2));
                bw.Write((ushort)(stringBinding.Length / 2));
                bw.Write(stringBinding);
                bw.Write(securityBinding);
            }