Added position functions to sunWriter

This commit is contained in:
arookas 2016-01-31 14:29:15 -05:00
parent 6292c2f9c5
commit 16cba6c798

View file

@ -10,13 +10,23 @@ namespace arookas {
this.mWriter = writer;
}
public void Keep() {
mWriter.Keep();
}
public void Back() {
mWriter.Back();
}
public void Goto(uint offset) {
mWriter.Goto(offset);
}
public sunPoint OpenPoint() { return new sunPoint(Offset); }
public void ClosePoint(sunPoint point) { ClosePoint(point, (uint)mWriter.Position); }
public void ClosePoint(sunPoint point, uint offset) {
mWriter.Keep();
mWriter.Goto(point.Offset);
Keep();
Goto(point.Offset);
mWriter.Write32(offset);
mWriter.Back();
Back();
}
public void WriteINT(int value) {