Searched refs:safe_buffer (Results 1 – 1 of 1) sorted by relevance
1012 SafeBuffer safe_buffer(kMagicVersionSize); in ReadProfileHeader() local1014 ProfileLoadStatus status = safe_buffer.Fill(source, "ReadProfileHeader", error); in ReadProfileHeader()1019 if (!safe_buffer.CompareAndAdvance(kProfileMagic, sizeof(kProfileMagic))) { in ReadProfileHeader()1023 if (safe_buffer.CountUnreadBytes() < kProfileVersionSize) { in ReadProfileHeader()1027 memcpy(version_, safe_buffer.GetCurrentPtr(), kProfileVersionSize); in ReadProfileHeader()1028 safe_buffer.Advance(kProfileVersionSize); in ReadProfileHeader()1035 if (!safe_buffer.ReadUintAndAdvance<uint8_t>(number_of_dex_files)) { in ReadProfileHeader()1039 if (!safe_buffer.ReadUintAndAdvance<uint32_t>(uncompressed_data_size)) { in ReadProfileHeader()1043 if (!safe_buffer.ReadUintAndAdvance<uint32_t>(compressed_data_size)) { in ReadProfileHeader()