public void LoadBucket(Stream stream) { OmegaStream omegaStream = new OmegaStream(stream); omegaStream.CheckResourceHeader(1263878736U, (ushort)2, (ushort)2); for (int index = 0; index < 2; ++index) { uint length = omegaStream.ReadUInt(); this.Parse((Stream) new MemoryStream(omegaStream.ReadBytes(length))); } }
public void LoadBucket(Stream stream) { OmegaStream stream2 = new OmegaStream(stream); stream2.CheckResourceHeader(0x4b554250, 2, 2); for (int i = 0; i < 2; i++) { uint length = stream2.ReadUInt(); byte[] buffer = stream2.ReadBytes(length); this.Parse(new MemoryStream(buffer)); } }