MCPcopy Create free account
hub / github.com/axiomatic-systems/Bento4 / writeHeader

Method writeHeader

Source/Java/com/axiosys/bento4/Atom.java:121–132  ·  view source on GitHub ↗
(DataOutputStream stream)

Source from the content-addressed store, hash-verified

119 }
120
121 public void writeHeader(DataOutputStream stream) throws IOException {
122 // write the size
123 stream.writeInt(size);
124
125 // write the type
126 stream.writeInt(type);
127
128 // for full atoms, write version and flags
129 if (isFull) {
130 stream.writeInt(version<<24 | flags);
131 }
132 }
133
134 protected abstract void writeFields(DataOutputStream stream) throws IOException;
135

Callers 2

writeMethod · 0.95
writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected