MemoryBlock insert


#1

Wouldn’t it be good to have a method to just insert a number of bytes into a MemoryBlock
like MemoryBlock::insert(startPos, numBytes) that automatically increases the size of the block ?

Joerg


#2

Sorry, made a mistake :frowning:
Should be read:

MemoryBlock::insert(pdataToInsert, insertPos, numBytesToInsert)


#3

Is it such a stupid request?


#4

Not at all, I’ve already done it! Will check in shortly…


#5

Is it such a stupid request?

Not at all, I’ve already done it! Will check in shortly…

Now that’s service for you!


#6

It’s a service for the community, isn’t it?

Anyway, it’s much appreciated!!


#7

Oh, it’s an idiom.

“That’s service for you.” means “That’s an excellent example of good service.” You could also say, “That’s what I call good service.” The “you” is an impersonal you, somewhat similar to mann in German or on in French and sometimes written as “one” in English (“That’s the sort of service one really likes.”) and doesn’t refer to you

/t, studying too much grammar these days.


#8

Ah, I see.

Thanks for the good explaination. I am from Germany where I’ve learned English in school about 20 years ago :slight_smile:

Thank you for teaching me that.

Joerg