Quantcast
Channel: User aggsol - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Answer by aggsol for How to create string from uint8[] in Vala?

$
0
0

As an alternative to the print solution a simple loop and using append_c from the StringBuilder in a loop works. Just append every byte till the end of array

var builder = new StringBuilder(buffer.length);for(int i=0; i<buffer.length; i++ {  builder.append_c(buffer[i]);}

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>