Searched refs:safe_buffer_version (Results 1 – 1 of 1) sorted by relevance
961 SafeBuffer safe_buffer_version(kMagicVersionSize); in ReadProfileHeader() local963 ProfileLoadStatus status = safe_buffer_version.Fill(source, "ReadProfileHeaderVersion", error); in ReadProfileHeader()968 if (!safe_buffer_version.CompareAndAdvance(kProfileMagic, sizeof(kProfileMagic))) { in ReadProfileHeader()972 if (safe_buffer_version.CountUnreadBytes() < kProfileVersionSize) { in ReadProfileHeader()976 memcpy(version_, safe_buffer_version.GetCurrentPtr(), kProfileVersionSize); in ReadProfileHeader()