◐ Shell
clean mode source ↗

std::basic_streambuf<CharT,Traits>::pubseekoff, std::basic_streambuf<CharT,Traits>::seekoff - cppreference.com

De cppreference.com

Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.

La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí.

pos_type pubseekoff( off_type off, ios_base::seekdir dir, ios_base::openmode which = ios_base::in | ios_base::out );

(1)

protected: virtual pos_type seekoff( off_type off, ios_base::seekdir dir, ios_base::openmode which = ios_base::in | ios_base::out );

(2)

Establece el indicador de posición de la entrada y / o salida de secuencia con respecto a alguna otra posición .

Original:

Sets the position indicator of the input and/or output sequence relative to some other position.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

Llamadas seekoff(off, dir, which) de la clase más derivada

Original:

Calls seekoff(off, dir, which) of the most derived class

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

La versión de la clase base de esta función no tiene ningún efecto. Las clases derivadas pueden reemplazar esta función para permitir el posicionamiento relativo del indicador de posición .

Original:

The base class version of this function has no effect. The derived classes may override this function to allow relative positioning of the position indicator.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

off -

posición relativa para establecer el indicador de posición al .

Original:

relative position to set the position indicator to.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

dir -

define la posición de la base para aplicar el ajuste relativo a. Puede ser uno de las siguientes constantes:

Constante Explicación
beg El comienzo de un flujo.
end El final de un flujo
cur La posición actual del indicador de posición del flujo

Original:

defines base position to apply the relative offset to. It can be one of the following constants:

Constante Explicación
beg El comienzo de un flujo.
end El final de un flujo
cur La posición actual del indicador de posición del flujo

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

which -

que define de la entrada y / o secuencias de salida a afectar. Puede ser uno o una combinación de las siguientes constantes:

Constant

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation
in

afectar a la secuencia de entrada

Original:

affect the input sequence

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

out

afectar a la secuencia de salida

Original:

affect the output sequence

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Original:

defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants:

Constant

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation
in

afectar a la secuencia de entrada

Original:

affect the input sequence

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

out

afectar a la secuencia de salida

Original:

affect the output sequence

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

1)

El valor de retorno de seekoff(off, dir, which)

Original:

The return value of seekoff(off, dir, which)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

La posición absoluta resultante tal como se define por el indicador de posición. La versión de la clase base devuelve pos_type(off_type(1-)) .

Original:

The resulting absolute position as defined by the position indicator. The base class version returns pos_type(off_type(1-)).

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ejemplo

Ver también