Skip to content

Instantly share code, notes, and snippets.

@atrodo
Created June 22, 2010 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atrodo/448838 to your computer and use it in GitHub Desktop.
Save atrodo/448838 to your computer and use it in GitHub Desktop.
procedure TDrvParrot.write(outStream: TFileStream);
var
pbc: String;
len: cardinal;
begin
pbc := Parrot_str_to_cstring(interp, out_pbc);
len := Parrot_str_byte_length(interp, out_pbc);
writeln(len);
outStream.write(PChar(pbc)^, len)
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment