Lines Matching defs:copy
51 /* copy bytes:
55 * to <- copy of from
78 /* like copy_bytes_(), but free()s the original '*to' if the copy succeeds and the original '*to' is non-NULL */
81 FLAC__byte *copy;
83 if(copy_bytes_(©, from, bytes)) {
86 *to = copy;
114 char *copy = strdup(from);
116 if(copy) {
119 *to = copy;
249 static FLAC__bool vorbiscomment_set_entry_(FLAC__StreamMetadata *object, FLAC__StreamMetadata_VorbisComment_Entry *dest, const FLAC__StreamMetadata_VorbisComment_Entry *src, FLAC__bool copy)
262 if(copy) {
263 /* do the copy first so that if we fail we leave the dest object untouched */
273 * in the API where the same function is used for 'copy' and
398 static FLAC__bool cuesheet_set_track_(FLAC__StreamMetadata *object, FLAC__StreamMetadata_CueSheet_Track *dest, const FLAC__StreamMetadata_CueSheet_Track *src, FLAC__bool copy)
410 /* do the copy first so that if we fail we leave the object untouched */
411 if(copy) {
903 FLAC_API FLAC__bool FLAC__metadata_object_application_set_data(FLAC__StreamMetadata *object, FLAC__byte *data, unsigned length, FLAC__bool copy)
909 FLAC__ASSERT((0 != data && length > 0) || (0 == data && length == 0 && copy == false));
913 /* do the copy first so that if we fail we leave the object untouched */
914 if(copy) {
1153 FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_set_vendor_string(FLAC__StreamMetadata *object, FLAC__StreamMetadata_VorbisComment_Entry entry, FLAC__bool copy)
1157 return vorbiscomment_set_entry_(object, &object->data.vorbis_comment.vendor_string, &entry, copy);
1208 FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_set_comment(FLAC__StreamMetadata *object, unsigned comment_num, FLAC__StreamMetadata_VorbisComment_Entry entry, FLAC__bool copy)
1215 return vorbiscomment_set_entry_(object, &object->data.vorbis_comment.comments[comment_num], &entry, copy);
1218 FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_insert_comment(FLAC__StreamMetadata *object, unsigned comment_num, FLAC__StreamMetadata_VorbisComment_Entry entry, FLAC__bool copy)
1239 return FLAC__metadata_object_vorbiscomment_set_comment(object, comment_num, entry, copy);
1242 FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_append_comment(FLAC__StreamMetadata *object, FLAC__StreamMetadata_VorbisComment_Entry entry, FLAC__bool copy)
1246 return FLAC__metadata_object_vorbiscomment_insert_comment(object, object->data.vorbis_comment.num_comments, entry, copy);
1249 FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_replace_comment(FLAC__StreamMetadata *object, FLAC__StreamMetadata_VorbisComment_Entry entry, FLAC__bool all, FLAC__bool copy)
1270 if(!FLAC__metadata_object_vorbiscomment_set_comment(object, index, entry, copy))
1285 return FLAC__metadata_object_vorbiscomment_append_comment(object, entry, copy);
1608 FLAC_API FLAC__bool FLAC__metadata_object_cuesheet_set_track(FLAC__StreamMetadata *object, unsigned track_num, FLAC__StreamMetadata_CueSheet_Track *track, FLAC__bool copy)
1613 return cuesheet_set_track_(object, object->data.cue_sheet.tracks + track_num, track, copy);
1616 FLAC_API FLAC__bool FLAC__metadata_object_cuesheet_insert_track(FLAC__StreamMetadata *object, unsigned track_num, FLAC__StreamMetadata_CueSheet_Track *track, FLAC__bool copy)
1634 return FLAC__metadata_object_cuesheet_set_track(object, track_num, track, copy);
1641 return FLAC__metadata_object_cuesheet_insert_track(object, track_num, &track, /*copy=*/false);
1721 FLAC_API FLAC__bool FLAC__metadata_object_picture_set_mime_type(FLAC__StreamMetadata *object, char *mime_type, FLAC__bool copy)
1734 /* do the copy first so that if we fail we leave the object untouched */
1735 if(copy) {
1753 FLAC_API FLAC__bool FLAC__metadata_object_picture_set_description(FLAC__StreamMetadata *object, FLAC__byte *description, FLAC__bool copy)
1766 /* do the copy first so that if we fail we leave the object untouched */
1767 if(copy) {
1785 FLAC_API FLAC__bool FLAC__metadata_object_picture_set_data(FLAC__StreamMetadata *object, FLAC__byte *data, FLAC__uint32 length, FLAC__bool copy)
1791 FLAC__ASSERT((0 != data && length > 0) || (0 == data && length == 0 && copy == false));
1795 /* do the copy first so that if we fail we leave the object untouched */
1796 if(copy) {