コード例 #1
0
        protected void StringPoolToMemoryStream()
        {
            int align = kStringPoolAlignment - ((MemoryStream.Length + Strings.Size) % kStringPoolAlignment);

            Strings.Write(MemoryStream);
            if (align != kStringPoolAlignment)
            {
                MemoryStream.Write(new byte[align]);
            }
        }
コード例 #2
0
        protected void StringPoolToMemoryStream()
        {
            int align = 16 - ((MemoryStream.Length + Strings.Size) % 16);

            Strings.Write(MemoryStream);
            if (align != 16)
            {
                MemoryStream.Write(new byte[align]);
            }
        }