src/data_buffer.h

changeset 75
bf8c57437231
parent 73
1ee9b312dc18
child 85
264a61e9eba0
equal deleted inserted replaced
74:007fbadfa7f9 75:bf8c57437231
1 /* 1 /*
2 Copyright (c) 2013-2014, Santeri Piippo 2 Copyright (c) 2012-2014, Santeri Piippo
3 All rights reserved. 3 All rights reserved.
4 4
5 Redistribution and use in source and binary forms, with or without 5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met: 6 modification, are permitted provided that the following conditions are met:
7 7
96 for (int x = 0; x < sizeof (T); x++) 96 for (int x = 0; x < sizeof (T); x++)
97 { 97 {
98 if (writesize >= allocsize) // should NEVER happen because resizing is done above 98 if (writesize >= allocsize) // should NEVER happen because resizing is done above
99 error ("DataBuffer: written size exceeds allocated size!\n"); 99 error ("DataBuffer: written size exceeds allocated size!\n");
100 100
101 buffer[writesize] = uni.b[x]; 101 buffer[writesize] = uni.as_bytes[x];
102 writesize++; 102 writesize++;
103 } 103 }
104 } 104 }
105 105
106 // ==================================================================== 106 // ====================================================================

mercurial