LLVM: include/llvm/BinaryFormat/MsgPackWriter.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28#ifndef LLVM_BINARYFORMAT_MSGPACKWRITER_H

29#define LLVM_BINARYFORMAT_MSGPACKWRITER_H

30

34

35namespace llvm {

36

38

40

41

43public:

44

45

46

47

48

49

50

51

53

56

57

58

59

61

62

63

64

66

67

68

69

70

71

73

74

75

76

78

79

80

81

83

84

85

86

88

89

90

91

92

93

95

96

97

98

99

100

101

102

103

104

106

107

108

109

110

111

112

113

114

115

116

118

119

120

121

123

124private:

126 bool Compatible;

127};

128

129}

130}

131

132#endif

StringRef - Represent a constant reference to a string, i.e.

LLVM_ABI void writeNil()

Write a Nil to the output stream.

Writer & operator=(const Writer &)=delete

LLVM_ABI Writer(raw_ostream &OS, bool Compatible=false)

Construct a writer, optionally enabling "Compatibility Mode" as defined in the MessagePack specificat...

LLVM_ABI void writeMapSize(uint32_t Size)

Write the header for a Map of the given size.

Writer(const Writer &)=delete

LLVM_ABI void writeArraySize(uint32_t Size)

Write the header for an Array of the given size.

LLVM_ABI void writeExt(int8_t Type, MemoryBufferRef Buffer)

Write a typed memory buffer (an extension type) to the output stream.

LLVM_ABI void write(bool b)

Write a Boolean to the output stream.

This class implements an extremely fast bulk output stream that can only output to a stream.

Type

MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...

This is an optimization pass for GlobalISel generic memory operations.

Adapter to write values to a stream in a particular byte order.