LStringData *LStringData::createFromBuffer(LChar *buffer) { size_t len = 0; while(buffer[len]) { len++; } return createFromBuffer(buffer, len, len + 1); }
Buffer::Buffer(const Buffer &obj): shouldDelete(true) { setClass("Buffer"); createFromBuffer(obj); }
void Texture::createEmpty( const TextureInfo& textureinfo ) { createFromBuffer(textureinfo, nullptr); }