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