Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: icu46/source/common/udatamem.h

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu46/source/common/udata.cpp ('k') | icu46/source/common/udatamem.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 ******************************************************************************
3 *
4 * Copyright (C) 1999-2010, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 ******************************************************************************/
8
9
10 /*------------------------------------------------------------------------------ ----
11 *
12 * UDataMemory A class-like struct that serves as a handle to a piece of me mory
13 * that contains some ICU data (resource, converters, whatever. )
14 *
15 * When an application opens ICU data (with udata_open, for exa mple,
16 * a UDataMemory * is returned.
17 *
18 *------------------------------------------------------------------------------ ----*/
19 #ifndef __UDATAMEM_H__
20 #define __UDATAMEM_H__
21
22 #include "unicode/udata.h"
23 #include "ucmndata.h"
24
25 struct UDataMemory {
26 const commonDataFuncs *vFuncs; /* Function Pointers for accessing TOC */
27
28 const DataHeader *pHeader; /* Header of the memory being described by th is */
29 /* UDataMemory object. */
30 const void *toc; /* For common memory, table of contents for */
31 /* the pieces within. */
32 UBool heapAllocated; /* True if this UDataMemory Object is on t he */
33 /* heap and thus needs to be deleted when cl osed. */
34
35 void *mapAddr; /* For mapped or allocated memory, the start addr. */
36 /* Only non-null if a close operation should unmap */
37 /* the associated data. */
38 void *map; /* Handle, or other data, OS dependent. */
39 /* Only non-null if a close operation should unmap */
40 /* the associated data, and additional info */
41 /* beyond the mapAddr is needed to do that. */
42 int32_t length; /* Length of the data in bytes; -1 if unknown . */
43 };
44
45 U_CFUNC UDataMemory *UDataMemory_createNewInstance(UErrorCode *pErr);
46 U_CFUNC void UDatamemory_assign (UDataMemory *dest, UDataMemory *source );
47 U_CFUNC void UDataMemory_init (UDataMemory *This);
48 U_CFUNC UBool UDataMemory_isLoaded(const UDataMemory *This);
49 U_CFUNC void UDataMemory_setData (UDataMemory *This, const void *dataAdd r);
50
51 U_CFUNC const DataHeader *UDataMemory_normalizeDataPointer(const void *p);
52
53 U_CAPI int32_t U_EXPORT2
54 udata_getLength(const UDataMemory *pData);
55
56 U_CAPI const void * U_EXPORT2
57 udata_getRawMemory(const UDataMemory *pData);
58
59 #endif
OLDNEW
« no previous file with comments | « icu46/source/common/udata.cpp ('k') | icu46/source/common/udatamem.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698