Skip to content
Snippets Groups Projects
  • Sanjay Ghemawat's avatar
    fca59fb2
    Add gpr_slice_new_with_user_data. · fca59fb2
    Sanjay Ghemawat authored
    gpr_slice_new_with_user_data is like gpr_slice_new, but allows the
    caller to specify a distinct pointer to pass to the destroy function.
    This is useful when the data is part of a larger data structure that
    should be destroyed when the data is no longer needed.
    fca59fb2
    History
    Add gpr_slice_new_with_user_data.
    Sanjay Ghemawat authored
    gpr_slice_new_with_user_data is like gpr_slice_new, but allows the
    caller to specify a distinct pointer to pass to the destroy function.
    This is useful when the data is part of a larger data structure that
    should be destroyed when the data is no longer needed.