aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/SplitVector.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-04-27 07:49:54 +0000
committernyamatongwe <devnull@localhost>2008-04-27 07:49:54 +0000
commit05afdfab73062917988db56f56c09695bef7b0cf (patch)
treef417bd12ca0629aea1894848303450fd0d539757 /src/SplitVector.h
parent3be48e12ea69c4443d7296ad6e00bb77bf9d6f04 (diff)
downloadscintilla-mirror-05afdfab73062917988db56f56c09695bef7b0cf.tar.gz
Implemented GetCharacterPointer feature.
Diffstat (limited to 'src/SplitVector.h')
-rw-r--r--src/SplitVector.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h
index 9d62aef72..76f9a8f36 100644
--- a/src/SplitVector.h
+++ b/src/SplitVector.h
@@ -238,6 +238,12 @@ public:
DeleteRange(0, lengthBody);
}
+ T* BufferPointer() {
+ RoomFor(1);
+ GapTo(lengthBody);
+ body[lengthBody] = 0;
+ return body;
+ }
};
#endif