diff options
author | arthurhsu <arthurhsu@google.com> | 2011-10-11 01:01:16 +0000 |
---|---|---|
committer | arthurhsu <arthurhsu@google.com> | 2011-10-11 01:01:16 +0000 |
commit | 158cdcb9cf09418ba8b49f4be7be69e37aa8e9fa (patch) | |
tree | d45ec0d71e59ea8df58331b5005d6e920daedf3e /cpp/src/sfntly/data/font_data.h | |
parent | b4e699e152543000a5825791e1c26826924a256f (diff) | |
download | sfntly-158cdcb9cf09418ba8b49f4be7be69e37aa8e9fa.tar.gz |
Update to Sep 30 snapshot, include all current EBXX support.
Refine Iterator ports: all java-style Iterator objects are ref-counted and have automatic memory management now.
Diffstat (limited to 'cpp/src/sfntly/data/font_data.h')
-rw-r--r-- | cpp/src/sfntly/data/font_data.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/sfntly/data/font_data.h b/cpp/src/sfntly/data/font_data.h index ec87c72..d02e8b7 100644 --- a/cpp/src/sfntly/data/font_data.h +++ b/cpp/src/sfntly/data/font_data.h @@ -17,6 +17,8 @@ #ifndef SFNTLY_CPP_SRC_SFNTLY_DATA_FONT_DATA_H_ #define SFNTLY_CPP_SRC_SFNTLY_DATA_FONT_DATA_H_ +#include <limits.h> + #include <vector> #include "sfntly/port/type.h" @@ -110,12 +112,15 @@ class FontData : virtual public RefCount { // @return the bound compensated offset int32_t BoundOffset(int32_t offset); - // Gets the length in the underlying data taking into account any bounds on the data. + // Gets the length in the underlying data taking into account any bounds on + // the data. // @param offset the offset that the length is being used at // @param length the length to get the bound compensated length for // @return the bound compensated length int32_t BoundLength(int32_t offset, int32_t length); + static const int32_t GROWABLE_SIZE = INT_MAX; + // TODO(arthurhsu): style guide violation: refactor this protected member ByteArrayPtr array_; |