Lines Matching refs:LETableReference
25 class LETableReference; // fwd
30 extern void _debug_LETableReference(const char *f, int l, const char *msg, const LETableReference *what, const void *ptr, size_t len);
49 class LETableReference {
55 LETableReference(const LEFontInstance* font, LETag tableTag, LEErrorCode &success) :
61 LETableReference(const LETableReference &parent, LEErrorCode &success) : fFont(parent.fFont), fTag(parent.fTag), fParent(&parent), fStart(parent.fStart), fLength(parent.fLength) {
68 LETableReference(const le_uint8* data, size_t length = LE_UINTPTR_MAX) :
72 LETableReference() :
77 ~LETableReference() {
87 LETableReference(const LETableReference &parent, size_t offset, size_t length,
127 const LETableReference* getParent() const { return fParent; }
185 LETableReference &reparent(const LETableReference &base) {
200 const LETableReference *fParent;
240 * it's a specialization that informs the LETableReference subclasses to NOT include the variable array in the size.
263 class LEReferenceToArrayOf : public LETableReference {
265 LEReferenceToArrayOf(const LETableReference &parent, LEErrorCode &success, size_t offset, le_uint32 count)
266 : LETableReference(parent, offset, LE_UINTPTR_MAX, success), fCount(count) {
272 LETableReference::verifyLength(0, LETableVarSizer<T>::getSize()*count, success);
280 LEReferenceToArrayOf(const LETableReference &parent, LEErrorCode &success, const T* array, le_uint32 count)
281 : LETableReference(parent, parent.ptrToOffset(array, success), LE_UINTPTR_MAX, success), fCount(count) {
287 LETableReference::verifyLength(0, LETableVarSizer<T>::getSize()*count, success);
291 LEReferenceToArrayOf(const LETableReference &parent, LEErrorCode &success, const T* array, size_t offset, le_uint32 count)
292 : LETableReference(parent, parent.ptrToOffset(array, success)+offset, LE_UINTPTR_MAX, success), fCount(count) {
298 LETableReference::verifyLength(0, LETableVarSizer<T>::getSize()*count, success);
303 LEReferenceToArrayOf() :LETableReference(), fCount(0) {}
307 using LETableReference::getAlias;
337 LEReferenceToArrayOf<T> &reparent(const LETableReference &base) {
342 LEReferenceToArrayOf(const LETableReference& parent, LEErrorCode & success) : LETableReference(parent,0, LE_UINTPTR_MAX, success), fCount(0) {
352 class LEReferenceTo : public LETableReference {
360 inline LEReferenceTo(const LETableReference &parent, LEErrorCode &success, const void* atPtr)
361 : LETableReference(parent, parent.ptrToOffset(atPtr, success), LE_UINTPTR_MAX, success) {
368 inline LEReferenceTo(const LETableReference &parent, LEErrorCode &success, const void* atPtr, size_t offset)
369 : LETableReference(parent, parent.ptrToOffset(atPtr, success)+offset, LE_UINTPTR_MAX, success) {
373 inline LEReferenceTo(const LETableReference &parent, LEErrorCode &success, size_t offset)
374 : LETableReference(parent, offset, LE_UINTPTR_MAX, success) {
378 inline LEReferenceTo(const LETableReference &parent, LEErrorCode &success)
379 : LETableReference(parent, 0, LE_UINTPTR_MAX, success) {
384 : LETableReference(font, tableTag, success) {
388 inline LEReferenceTo(const le_uint8 *data, size_t length = LE_UINTPTR_MAX) : LETableReference(data, length) {}
389 inline LEReferenceTo(const T *data, size_t length = LE_UINTPTR_MAX) : LETableReference((const le_uint8*)data, length) {}
390 inline LEReferenceTo() : LETableReference(NULL) {}
397 LEReferenceTo<T> &reparent(const LETableReference &base) {