Shawn Walker wrote: > No, that option is fine (and I greatly appreciate the suggestion!), > although it does seem to indicate that I will have to either: > > * serialize the result to a string and do a search and replace in the > string (not so pretty from memory usage standpoint) and then save > > * perform a seek in the file searching for the dummy signature value > string and then replace it with my own (number of ways to do this) > and then re-save
You could combine the two: do the search in the in-memory copy to find the location, then write to disk, then seek to the location you saved and write the bytes down. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
