Lines Matching defs:length

73           v8::String::New("end cannot be longer than parent.length")));  \
87 size_t length;
93 static inline Blob * blob_new(size_t length) {
98 blob->data = (char*) malloc(length);
105 V8::AdjustAmountOfExternalAllocatedMemory(sizeof(Blob) + length);
106 blob->length = length;
122 //fprintf(stderr, "free %d bytes\n", blob->length);
123 V8::AdjustAmountOfExternalAllocatedMemory(-(sizeof(Blob) + blob->length));
142 assert(start + length_ <= parent->length());
154 size_t length() const { return length_; }
181 size_t length = 0;
183 length = args[0]->Uint32Value();
185 buffer = new Buffer(length);
196 int length = e == UTF8 ? s->Utf8Length() : s->Length();
197 buffer = new Buffer(length);
212 buffer->length());
240 Buffer::Buffer(size_t length) : ObjectWrap() {
241 DBG("Buffer::Buffer(length) E");
242 blob_ = blob_new(length);
244 length_ = length;
249 DBG("Buffer::Buffer(length) X");
285 void Buffer::NewBlob(size_t length) {
286 DBG("Buffer::NewBlob(length) E");
288 blob_ = blob_new(length);
290 length_ = length;
295 DBG("Buffer::NewBlob(length) X");
379 : source->length();
387 if (target_start < 0 || ((size_t)target_start) > target->length()) {
393 if (source_start < 0 || ((size_t)source_start) > source->length()) {
399 if (source_end < 0 || ((size_t)source_end) > source->length()) {
406 target->length() - target_start);
547 Local<Array> array = Array::New(format.length());
553 for (int i = 0; i < format.length(); i++) {
605 Local<Integer> length =
609 return scope.Close(length);
616 length_symbol = Persistent<String>::New(String::NewSymbol("length"));