public static ResourceType FromBytes(byte a1, byte a2, byte a3, byte a4) => ( ResourceType )((( uint )ByteStringFunctions.AsciiToLower(a1) << 24) | (( uint )ByteStringFunctions.AsciiToLower(a2) << 16) | (( uint )ByteStringFunctions.AsciiToLower(a3) << 8) | ByteStringFunctions.AsciiToLower(a4));
// Convert the ascii portion of the string to lowercase. // Guaranteed to create an owned copy. public Utf8String AsciiToLowerClone() => (_length & AsciiLowerFlag) == 0 ? new Utf8String().Setup(ByteStringFunctions.AsciiToLower(_path, Length), Length, null, true, true, true, IsAsciiInternal) : Clone();