]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/DisplayEngineDxe/Print.c
Update NT32/Duet platform to use new display engine and browser.
[mirror_edk2.git] / MdeModulePkg / Universal / DisplayEngineDxe / Print.c
1 /** @file
2 Basic Ascii AvSPrintf() function named VSPrint(). VSPrint() enables very
3 simple implemenation of SPrint() and Print() to support debug.
4
5 You can not Print more than EFI_DRIVER_LIB_MAX_PRINT_BUFFER characters at a
6 time. This makes the implementation very simple.
7
8 VSPrint, Print, SPrint format specification has the follwoing form
9
10 %type
11
12 type:
13 'S','s' - argument is an Unicode string
14 'c' - argument is an ascii character
15 '%' - Print a %
16
17
18 Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>
19 This program and the accompanying materials
20 are licensed and made available under the terms and conditions of the BSD License
21 which accompanies this distribution. The full text of the license may be found at
22 http://opensource.org/licenses/bsd-license.php
23
24 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
25 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
26
27 **/
28
29 #include "FormDisplay.h"
30
31
32 /**
33 Set Buffer to Value for Size bytes.
34
35 @param Buffer Memory to set.
36 @param Size Number of bytes to set
37 @param Value Value of the set operation.
38
39 **/
40 VOID
41 SetUnicodeMem (
42 IN VOID *Buffer,
43 IN UINTN Size,
44 IN CHAR16 Value
45 )
46 {
47 CHAR16 *Ptr;
48
49 Ptr = Buffer;
50 while ((Size--) != 0) {
51 *(Ptr++) = Value;
52 }
53 }
54