OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SerializationTag_h | 5 #ifndef SerializationTag_h |
6 #define SerializationTag_h | 6 #define SerializationTag_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // Serialization format is a sequence of tags followed by zero or more data argu
ments. | 10 // Serialization format is a sequence of tags followed by zero or more data argu
ments. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // props = algorithmId:uint32_t, type:uint32_t, name
dCurve:uint32_t | 71 // props = algorithmId:uint32_t, type:uint32_t, name
dCurve:uint32_t |
72 ObjectReferenceTag = '^', // ref:uint32_t -> reference table[ref] | 72 ObjectReferenceTag = '^', // ref:uint32_t -> reference table[ref] |
73 GenerateFreshObjectTag = 'o', // -> empty object allocated an object ID and
pushed onto the open stack (ref) | 73 GenerateFreshObjectTag = 'o', // -> empty object allocated an object ID and
pushed onto the open stack (ref) |
74 GenerateFreshSparseArrayTag = 'a', // length:uint32_t -> empty array[length]
allocated an object ID and pushed onto the open stack (ref) | 74 GenerateFreshSparseArrayTag = 'a', // length:uint32_t -> empty array[length]
allocated an object ID and pushed onto the open stack (ref) |
75 GenerateFreshDenseArrayTag = 'A', // length:uint32_t -> empty array[length]
allocated an object ID and pushed onto the open stack (ref) | 75 GenerateFreshDenseArrayTag = 'A', // length:uint32_t -> empty array[length]
allocated an object ID and pushed onto the open stack (ref) |
76 ReferenceCountTag = '?', // refTableSize:uint32_t -> If the reference table
is not refTableSize big, fails. | 76 ReferenceCountTag = '?', // refTableSize:uint32_t -> If the reference table
is not refTableSize big, fails. |
77 StringObjectTag = 's', // string:RawString -> new String(string) (ref) | 77 StringObjectTag = 's', // string:RawString -> new String(string) (ref) |
78 NumberObjectTag = 'n', // value:double -> new Number(value) (ref) | 78 NumberObjectTag = 'n', // value:double -> new Number(value) (ref) |
79 TrueObjectTag = 'y', // new Boolean(true) (ref) | 79 TrueObjectTag = 'y', // new Boolean(true) (ref) |
80 FalseObjectTag = 'x', // new Boolean(false) (ref) | 80 FalseObjectTag = 'x', // new Boolean(false) (ref) |
81 CompositorProxyTag = 'C', | 81 CompositorProxyTag = 'C', // elementId:uint64_t, bitfields:uint32_t -> Compo
sitorProxy (ref) |
82 VersionTag = 0xFF // version:uint32_t -> Uses this as the file version. | 82 VersionTag = 0xFF // version:uint32_t -> Uses this as the file version. |
83 }; | 83 }; |
84 | 84 |
85 enum ArrayBufferViewSubTag { | 85 enum ArrayBufferViewSubTag { |
86 ByteArrayTag = 'b', | 86 ByteArrayTag = 'b', |
87 UnsignedByteArrayTag = 'B', | 87 UnsignedByteArrayTag = 'B', |
88 UnsignedByteClampedArrayTag = 'C', | 88 UnsignedByteClampedArrayTag = 'C', |
89 ShortArrayTag = 'w', | 89 ShortArrayTag = 'w', |
90 UnsignedShortArrayTag = 'W', | 90 UnsignedShortArrayTag = 'W', |
91 IntArrayTag = 'd', | 91 IntArrayTag = 'd', |
92 UnsignedIntArrayTag = 'D', | 92 UnsignedIntArrayTag = 'D', |
93 FloatArrayTag = 'f', | 93 FloatArrayTag = 'f', |
94 DoubleArrayTag = 'F', | 94 DoubleArrayTag = 'F', |
95 DataViewTag = '?' | 95 DataViewTag = '?' |
96 }; | 96 }; |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
99 | 99 |
100 #endif | 100 #endif |
OLD | NEW |