Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index f2b5139f9bc24cd1841fcfb952d4db93a00432c5..45748500939bbd7ee82cdec3b3bb621dcd5c6303 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4394,8 +4394,13 @@ class ByteArray: public FixedArrayBase { |
inline byte get(int index); |
inline void set(int index, byte value); |
+ // Copy in / copy out whole byte slices. |
+ inline void copy_out(int index, byte* buffer, int length); |
+ inline void copy_in(int index, const byte* buffer, int length); |
+ |
// Treat contents as an int array. |
inline int get_int(int index); |
+ inline void set_int(int index, int value); |
static int SizeFor(int length) { |
return OBJECT_POINTER_ALIGN(kHeaderSize + length); |