public void WriteData(StreamFunctionAdd sfa) { if (typeOffset == OffsetType.LargeOffset && sfa.PositionStream - baseOffset < 4095L) { while (sfa.PositionStream - baseOffset < 4095L) { sfa.WriteByte(0); } } offset = (uint)sfa.PositionStream; sfa.WriteBytes(data.ToArray()); }
public void WriteData(StreamFunctionAdd sfa) { if (this.typeOffset == (byte)3 && sfa.PositionStream - (long)this.baseOffset < 4095L) { while (sfa.PositionStream - (long)this.baseOffset < 4095L) { sfa.WriteByte((byte)0); } } this.offset = (uint)sfa.PositionStream; sfa.WriteBytes(this.data.ToArray()); }