Hello. I see NSS code uses SECITEM_AllocItem() and PORT_Arena{,Z}Alloc() memory allocation routines almost interchangeably.
I see that SECITEM_AllocItem(), basically, just wraps PORT_ArenaZAlloc() into the "arena mark" brackets: mark = PORT_ArenaMark( arena ); PORT_ArenaZAlloc( arena, ... ) PORT_ArenaUnmark(arena, mark) or PORT_ArenaRelease(arena, mark); The "arena mark" brackets are not documented anywhere, thereby I can't decide, which routine, SECITEM_AllocItem or PORT_Arena{,Z}Alloc, is best for me. Could you, please, advice, which allocation routine (SECITEM_AllocItem or PORT_Arena{,Z}Alloc) should I use for my particular code ? Best regards, -- Konstantin Andreev, software engineer. Swemel JSC -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto