public static Type ReadNamedType(byte[] bytes, int offset, out int readSize, bool throwOnError = true)
        {
            var hashCode = ReadInt32(bytes, offset, out var hashCodeSize);
            var typeName = ReadBytes(bytes, offset + hashCodeSize, out readSize);

            readSize += hashCodeSize;
            return(TypeSerializer.GetTypeFromTypeKey(new TypeKey(hashCode, typeName), throwOnError));
        }