Add WriteBuffer to FxResourceVariable.