OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_INCLUDE_FXCRT_FX_EXT_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_EXT_H_ |
8 #define CORE_INCLUDE_FXCRT_FX_EXT_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_EXT_H_ |
9 | 9 |
10 #include <cctype> | 10 #include <cctype> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount); | 91 void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount); |
92 | 92 |
93 void FX_Random_GenerateMT(FX_DWORD* pBuffer, int32_t iCount); | 93 void FX_Random_GenerateMT(FX_DWORD* pBuffer, int32_t iCount); |
94 | 94 |
95 void FX_Random_GenerateCrypto(FX_DWORD* pBuffer, int32_t iCount); | 95 void FX_Random_GenerateCrypto(FX_DWORD* pBuffer, int32_t iCount); |
96 | 96 |
97 #ifdef PDF_ENABLE_XFA | 97 #ifdef PDF_ENABLE_XFA |
98 typedef struct FX_GUID { | 98 typedef struct FX_GUID { |
99 FX_DWORD data1; | 99 FX_DWORD data1; |
100 FX_WORD data2; | 100 uint16_t data2; |
101 FX_WORD data3; | 101 uint16_t data3; |
102 uint8_t data4[8]; | 102 uint8_t data4[8]; |
103 } FX_GUID, *FX_LPGUID; | 103 } FX_GUID, *FX_LPGUID; |
104 typedef FX_GUID const* FX_LPCGUID; | 104 typedef FX_GUID const* FX_LPCGUID; |
105 void FX_GUID_CreateV4(FX_LPGUID pGUID); | 105 void FX_GUID_CreateV4(FX_LPGUID pGUID); |
106 void FX_GUID_ToString(FX_LPCGUID pGUID, | 106 void FX_GUID_ToString(FX_LPCGUID pGUID, |
107 CFX_ByteString& bsStr, | 107 CFX_ByteString& bsStr, |
108 FX_BOOL bSeparator = TRUE); | 108 FX_BOOL bSeparator = TRUE); |
109 #endif // PDF_ENABLE_XFA | 109 #endif // PDF_ENABLE_XFA |
110 | 110 |
111 template <class baseType> | 111 template <class baseType> |
(...skipping 13 matching lines...) Expand all Loading... |
125 j -= gap; | 125 j -= gap; |
126 } | 126 } |
127 pArray[j + gap] = v1; | 127 pArray[j + gap] = v1; |
128 } | 128 } |
129 gap >>= 1; | 129 gap >>= 1; |
130 } | 130 } |
131 } | 131 } |
132 }; | 132 }; |
133 | 133 |
134 #endif // CORE_INCLUDE_FXCRT_FX_EXT_H_ | 134 #endif // CORE_INCLUDE_FXCRT_FX_EXT_H_ |
OLD | NEW |