aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioVector.cpp
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-11-09 22:05:23 -0500
committerThomas Tsou <tom@tsou.cc>2013-11-15 23:35:07 -0500
commitd0f3ca3e94be458cde4b2654681ba2e7e21197b4 (patch)
tree7e9dece0893a26b01dfde17476fc569f06c5fad5 /Transceiver52M/radioVector.cpp
parentf8bc7c351ff96ffca57ad30535de315cf7e1c8ae (diff)
Transceiver52M: Preallocate head room for burst correlation
Set a transceiver high level length value that specifies the largest number of complex or real filter taps that we will encounter. This allows preallocation of head room and prevents an extra allocation and copy on every incoming receive burst. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioVector.cpp')
-rw-r--r--Transceiver52M/radioVector.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Transceiver52M/radioVector.cpp b/Transceiver52M/radioVector.cpp
index c50cfa5..8ab6695 100644
--- a/Transceiver52M/radioVector.cpp
+++ b/Transceiver52M/radioVector.cpp
@@ -31,6 +31,11 @@ radioVector::radioVector(size_t size, GSM::Time& wTime)
{
}
+radioVector::radioVector(size_t size, size_t start, GSM::Time& wTime)
+ : signalVector(size, start), mTime(wTime)
+{
+}
+
GSM::Time radioVector::getTime() const
{
return mTime;