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