static void writeChunk(List stream, Chunk chunk){ var bytes = chunk.charCodes(); for(final byte in bytes){ stream.add(byte); } }