T
Tony Johansson
Hello!
Here I have an small piece of code from a program.
I have read about the last parameter of GetBytes but I can't really
understand it's use.
I mean that the GC would take care of flushing the Encoder object e without
having to say that.
So somebody explain the reason for having this last parameter in the method
GetBytes ?
Encoder e = Encoding.UTF8.GetEncoder();
e.GetBytes(chardata, 0, chardata.length, byteDataArray, 0, true):
//Tony
Here I have an small piece of code from a program.
I have read about the last parameter of GetBytes but I can't really
understand it's use.
I mean that the GC would take care of flushing the Encoder object e without
having to say that.
So somebody explain the reason for having this last parameter in the method
GetBytes ?
Encoder e = Encoding.UTF8.GetEncoder();
e.GetBytes(chardata, 0, chardata.length, byteDataArray, 0, true):
//Tony