mirror of https://github.com/acidanthera/audk.git
119 lines
2.5 KiB
C
119 lines
2.5 KiB
C
/** @file
|
|
Library that provides print services
|
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
All rights reserved. This program and the accompanying materials
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
Module Name: PrintLib.h
|
|
|
|
**/
|
|
|
|
#ifndef __PRINT_LIB_H__
|
|
#define __PRINT_LIB_H__
|
|
|
|
//
|
|
// Print primitives
|
|
//
|
|
#define LEFT_JUSTIFY 0x01
|
|
#define COMMA_TYPE 0x08
|
|
#define PREFIX_ZERO 0x20
|
|
|
|
UINTN
|
|
EFIAPI
|
|
UnicodeVSPrint (
|
|
OUT CHAR16 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR16 *FormatString,
|
|
IN VA_LIST Marker
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
UnicodeSPrint (
|
|
OUT CHAR16 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR16 *FormatString,
|
|
...
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
UnicodeVSPrintAsciiFormat (
|
|
OUT CHAR16 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR8 *FormatString,
|
|
IN VA_LIST Marker
|
|
);
|
|
|
|
|
|
UINTN
|
|
EFIAPI
|
|
UnicodeSPrintAsciiFormat (
|
|
OUT CHAR16 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR8 *FormatString,
|
|
...
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
AsciiVSPrint (
|
|
OUT CHAR8 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR8 *FormatString,
|
|
IN VA_LIST Marker
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
AsciiSPrint (
|
|
OUT CHAR8 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR8 *FormatString,
|
|
...
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
AsciiVSPrintUnicodeFormat (
|
|
OUT CHAR8 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR16 *FormatString,
|
|
IN VA_LIST Marker
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
AsciiSPrintUnicodeFormat (
|
|
OUT CHAR8 *StartOfBuffer,
|
|
IN UINTN BufferSize,
|
|
IN CONST CHAR16 *FormatString,
|
|
...
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
UnicodeValueToString (
|
|
IN OUT CHAR16 *Buffer,
|
|
IN UINTN Flags,
|
|
IN INT64 Value,
|
|
IN UINTN Width
|
|
);
|
|
|
|
UINTN
|
|
EFIAPI
|
|
AsciiValueToString (
|
|
IN OUT CHAR8 *Buffer,
|
|
IN UINTN Flags,
|
|
IN INT64 Value,
|
|
IN UINTN Width
|
|
);
|
|
|
|
#endif
|