This group contains the Device I/O Support API and implementation.
More...
|
| typedef void(* | IO_Put_char) (int c, void *arg) |
| | This type defines the put character handler. More...
|
| |
|
| int | _IO_Printf (IO_Put_char put_char, void *arg, char const *fmt,...) RTEMS_PRINTFLIKE(3 |
| | Prints characters using the put character handler according to the format string. More...
|
| |
| int int | _IO_Vprintf (IO_Put_char put_char, void *arg, char const *fmt, va_list ap) |
| | Prints characters using the put character handler according to the format string. More...
|
| |
| int | _IO_Base64 (IO_Put_char put_char, void *arg, const void *src, size_t len, const char *wordbreak, int wordlen) |
| | Outputs the source buffer in base64 encoding. More...
|
| |
| int | _IO_Base64url (IO_Put_char put_char, void *arg, const void *src, size_t len, const char *wordbreak, int wordlen) |
| | Outputs the source buffer in base64url encoding. More...
|
| |
| void | _IO_Relax (void) |
| | Issues a couple of no-operation instructions. More...
|
| |
This group contains the Device I/O Support API and implementation.
◆ IO_Put_char
| typedef void(* IO_Put_char) (int c, void *arg) |
This type defines the put character handler.
- Parameters
-
| c | is the character to put. |
| arg | is the user-provided argument. |
◆ _IO_Base64()
| int _IO_Base64 |
( |
IO_Put_char |
put_char, |
|
|
void * |
arg, |
|
|
const void * |
src, |
|
|
size_t |
len, |
|
|
const char * |
wordbreak, |
|
|
int |
wordlen |
|
) |
| |
Outputs the source buffer in base64 encoding.
After word length of output characters produced by the encoding a word break is produced.
- Parameters
-
| put_char | is the put character function used to output the encoded source buffer. |
| arg | is the argument passed to the put character function. |
| src | is the pointer to the source buffer begin. |
| srclen | is the length of the source buffer in bytes. |
| wordbreak | is the word break string. |
| wordlen | is the word length in bytes. If the word length is less than four, then a word length of four will be used. |
- Returns
- Returns the count of output characters.
◆ _IO_Base64url()
| int _IO_Base64url |
( |
IO_Put_char |
put_char, |
|
|
void * |
arg, |
|
|
const void * |
src, |
|
|
size_t |
len, |
|
|
const char * |
wordbreak, |
|
|
int |
wordlen |
|
) |
| |
Outputs the source buffer in base64url encoding.
After word length of output characters produced by the encoding a word break is produced.
- Parameters
-
| put_char | is the put character function used to output the encoded source buffer. |
| arg | is the argument passed to the put character function. |
| src | is the pointer to the source buffer begin. |
| srclen | is the length of the source buffer in bytes. |
| wordbreak | is the word break string. |
| wordlen | is the word length in bytes. If the word length is less than four, then a word length of four will be used. |
- Returns
- Returns the count of output characters.
◆ _IO_Printf()
| int _IO_Printf |
( |
IO_Put_char |
put_char, |
|
|
void * |
arg, |
|
|
char const * |
fmt, |
|
|
|
... |
|
) |
| |
Prints characters using the put character handler according to the format string.
- Parameters
-
| put_char | is the put character handler. |
| arg | is the user-provided argument for the put character handler. |
| fmt | is the printf()-style format string. |
| ... | is the list of parameters required by the format string. |
- Returns
- Returns the count of put characters.
◆ _IO_Relax()
Issues a couple of no-operation instructions.
This function may be used to burn a couple of processor cycles with minimum impact on the system bus. It may be used in busy wait loops.
◆ _IO_Vprintf()
| int int _IO_Vprintf |
( |
IO_Put_char |
put_char, |
|
|
void * |
arg, |
|
|
char const * |
fmt, |
|
|
va_list |
ap |
|
) |
| |
Prints characters using the put character handler according to the format string.
- Parameters
-
| put_char | is the put character handler. |
| arg | is the user-provided argument for the put character handler. |
| fmt | is the printf()-style format string. |
| ap | is the argument list required by the format string. |
- Returns
- Returns the count of put characters.