Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2019 Google
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#pragma once
16
 
17
#include <mach/vm_types.h>
18
#include <stdbool.h>
19
#include <stdio.h>
20
#include "Crashlytics/Crashlytics/Components/FIRCLSGlobals.h"
21
 
22
#define FIRCLSIsValidPointer(x) ((uintptr_t)x >= 4096)
23
#define FIRCLSInvalidCharNybble (255)
24
 
25
__BEGIN_DECLS
26
 
27
void FIRCLSLookupFunctionPointer(void* ptr, void (^block)(const char* name, const char* lib));
28
 
29
void FIRCLSHexFromByte(uint8_t c, char output[]);
30
uint8_t FIRCLSNybbleFromChar(char c);
31
 
32
bool FIRCLSReadMemory(vm_address_t src, void* dest, size_t len);
33
bool FIRCLSReadString(vm_address_t src, char** dest, size_t maxlen);
34
 
35
const char* FIRCLSDupString(const char* string);
36
 
37
bool FIRCLSUnlinkIfExists(const char* path);
38
void FIRCLSRedactUUID(char* value);
39
 
40
#if __OBJC__
41
void FIRCLSDispatchAfter(float timeInSeconds, dispatch_queue_t queue, dispatch_block_t block);
42
 
43
NSString* FIRCLSNormalizeUUID(NSString* value);
44
NSString* FIRCLSGenerateNormalizedUUID(void);
45
 
46
NSString* FIRCLSNSDataToNSString(NSData* data);
47
 
48
void FIRCLSAddOperationAfter(float timeInSeconds, NSOperationQueue* queue, void (^block)(void));
49
#endif
50
 
51
#if DEBUG
52
void FIRCLSPrintAUUID(const uint8_t* value);
53
#endif
54
 
55
__END_DECLS