/** * Array copy the byte backing store so that you can guarantee that no other objects are * referencing this objects backing store. */ public void unshare() { unshare(realSize); }
/** * Array copy the byte backing store so that you can guarantee that no other objects are * referencing this objects backing store. */ public void unshare() { unshare(realSize); }
/** * Array copy the byte backing store so that you can guarantee that no other objects are * referencing this objects backing store. */ public void unshare() { unshare(realSize); }
/** rb_str_modify * */ public final void modify() { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(); } else { value.unshare(); } shareLevel = SHARE_LEVEL_NONE; } value.invalidate(); }
/** rb_str_modify * */ public final void modify() { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(); } else { value.unshare(); } shareLevel = SHARE_LEVEL_NONE; } value.invalidate(); }
/** rb_str_modify * */ public final void modify() { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(); } else { value.unshare(); } shareLevel = SHARE_LEVEL_NONE; } value.invalidate(); }
/** rb_str_modify * */ public final void modify() { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(); } else { value.unshare(); } shareLevel = SHARE_LEVEL_NONE; } value.invalidate(); }
/** rb_str_modify * */ public final void modify() { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(); } else { value.unshare(); } shareLevel = SHARE_LEVEL_NONE; } value.invalidate(); }
/** rb_str_modify (with length bytes ensured) * */ public final void modify(int length) { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(length); } else { value.unshare(length); } shareLevel = SHARE_LEVEL_NONE; } else { value.ensure(length); } value.invalidate(); }
/** rb_str_modify (with length bytes ensured) * */ public final void modify(int length) { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(length); } else { value.unshare(length); } shareLevel = SHARE_LEVEL_NONE; } else { value.ensure(length); } value.invalidate(); }
/** rb_str_modify (with length bytes ensured) * */ public final void modify(int length) { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(length); } else { value.unshare(length); } shareLevel = SHARE_LEVEL_NONE; } else { value.ensure(length); } value.invalidate(); }
/** rb_str_modify (with length bytes ensured) * */ public final void modify(int length) { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(length); } else { value.unshare(length); } shareLevel = SHARE_LEVEL_NONE; } else { value.ensure(length); } value.invalidate(); }
/** rb_str_modify (with length bytes ensured) * */ public final void modify(int length) { modifyCheck(); if (shareLevel != SHARE_LEVEL_NONE) { if (shareLevel == SHARE_LEVEL_BYTELIST) { value = value.dup(length); } else { value.unshare(length); } shareLevel = SHARE_LEVEL_NONE; } else { value.ensure(length); } value.invalidate(); }
line.unshare(); line.append(add); line.invalidate();