public int PutInt32(int var) { int prevIndex = WrittenBytes; Write(BitConverter.GetBytes(var)); return prevIndex; }