Home
last modified time | relevance | path

Searched refs:dataSize (Results 1 – 4 of 4) sorted by relevance

/libnativehelper/tests/
DExpandableString_test.cpp31 EXPECT_EQ(s.dataSize, 0u); in TEST()
34 EXPECT_GE(s.dataSize, strlen(kAhoy)); in TEST()
37 EXPECT_GE(s.dataSize, 0u); in TEST()
47 EXPECT_EQ(s.dataSize, 0u); in TEST()
50 EXPECT_GE(s.dataSize, strlen(kAhoy)); in TEST()
53 EXPECT_GE(s.dataSize, strlen(kMercy)); in TEST()
56 EXPECT_GE(s.dataSize, strlen(kAhoy)); in TEST()
59 EXPECT_GE(s.dataSize, 0u); in TEST()
86 EXPECT_GE(expandableString.dataSize, requiredSize); in TEST_P()
/libnativehelper/
DExpandableString.c34 size_t requiredSize = s->dataSize + textSize + 1; in ExpandableStringAppend()
40 memcpy(s->data + s->dataSize, text, textSize + 1); in ExpandableStringAppend()
41 s->dataSize += textSize; in ExpandableStringAppend()
DExpandableString.h27 size_t dataSize; // The length of the C string data (not including the null-terminator). member
/libnativehelper/include/nativehelper/
DJNIHelp.h53 size_t dataSize; // The length of the C string data (not including the null-terminator). member
68 size_t requiredSize = s->dataSize + textSize + 1; in ExpandableStringAppend()
74 memcpy(s->data + s->dataSize, text, textSize + 1); in ExpandableStringAppend()
75 s->dataSize += textSize; in ExpandableStringAppend()