seek & read RAM Bundle

Summary: For RAM bundling we don't want to hold the entire bundle in memory as that approach doesn't scale. Instead we want to seek and read individual sections as they're required. This rev does that by detecting the type of bundle we're dealing with by reading the first 4 bytes of it. If we're dealing with a RAM Bundle we bail loading.

Reviewed By: javache

Differential Revision: D3026205

fb-gh-sync-id: dc4c745d6f00aa7241203899e5ba136915efa6fe
shipit-source-id: dc4c745d6f00aa7241203899e5ba136915efa6fe
This commit is contained in:
Martín Bigio
2016-03-17 10:34:46 -07:00
committed by Facebook Github Bot 9
parent 4c7c365623
commit dd2415df73
4 changed files with 157 additions and 50 deletions

View File

@@ -11,6 +11,8 @@
#import "RCTBridgeDelegate.h"
extern uint32_t const RCTRAMBundleMagicNumber;
@class RCTBridge;
/**