Refactor nullsafe conversions between ResourceData* and ResourceHdr*
commiteadc6fe5a2a5fb70fbffd9b2efd0393fd9c900e5
authorEdwin Smith <smith@fb.com>
Fri, 2 Oct 2015 15:16:59 +0000 (2 08:16 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Fri, 2 Oct 2015 15:30:27 +0000 (2 08:30 -0700)
tree65cec0b135ddfe519833022875283177bf55a2e7
parent4f24556c6a0ff039ddc79600426af56a284d33a5
Refactor nullsafe conversions between ResourceData* and ResourceHdr*

Summary: do the null checking in common helpers.

Reviewed By: @ricklavoie

Differential Revision: D2494206
hphp/runtime/base/resource-data.h
hphp/runtime/base/type-resource.h